1 min read
Create an Asp.Net Core MVC app with the repository pattern Part 1 – Create the model
So let’s create an ASP.NET Core MVC app that also implements the repository pattern. You can follow along here.
First create the models. This is a coffee app where a customer can order coffee.
public enum Coffee
{
Espresso,
Cappuccino,
Frappuccino
}

public class Order
{
public string CustomerName { get; set; }
public Coffee CoffeeSelected { get; set; }
}

Great work! Now in the next post we’ll create an interface.