public OrderController(dbr.OrderRepository repo)
 {
     orderRepo = repo;
 }
Beispiel #2
0
 public static void Initialize(PizzaStoreData.DataAccess.PizzaStoreDBContext database)
 {
     Database  = database ?? throw new ArgumentNullException(nameof(database));
     orderRepo = new dbr.OrderRepository(Database);
 }