.NET Core 2.0, Angular 4 and MySQL

Because we are going to start from scratch, delete all actions inside class to look like this: – – Every web API controller class inherits from the class that provides all the necessary behavior for the derived class.

In the previous post, you have created a repository pattern for collecting the data from the database.

Now, it is time to use that repository for the business logic.

You will keep all the database logic inside the repository classes. Controllers will be responsible for handling requests, model validation and returning responses to the frontend part of the application.

By doing so, your controllers won’t be overwhelmed with the code, thus making the code easier to read and maintain as well.

If you want to see all the basic instructions and complete navigation for this series, please follow the link: Introduction page for this tutorial.