1 min read
Create an Asp.Net Core MVC app with the repository pattern Part 2 – Create the interface
Now it’s time to create the interface we need.
This interface only presents one option and that is to get all orders.
public interface IOrderRepository
{
Order GetAllOrders();
}

Next post we will write a MockRepository which we can populate with some mockdata.