1 min read

Create an Asp.Net Core MVC app with the repository pattern Part 5 – Create a Controller that implements the order interface.

Now inside the Startup.cs of the MVC app tell the app that any time someone asks for IEmployeerepository it provides the mock repository.

So the power of a repository is now that any time you want to change the source data you can just change this one line of code with another repository.

Now in the last sections let’s finish by creating a view to deplay our orders.

Leave a Reply