1 min read

Create an Asp.Net Core MVC app with the repository pattern Part 2 – Create the interface

Next we’ll create an interface with one method that returns an IEnumerable of type order.

    public interface IOrderRepository
        IEnumerable<Order> GetAllOrders();

Great! Now in the next post we’ll create a MockRepository with some orders.

Leave a Reply