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