// TODO: Is a new Model created every time a request is made? Break here and see if constructor is called after post
        public MenuModel(IPizzaShopDbHandler pizzaShopDbHandler)
        {
            CurrentDrink = new Drink();
            CurrentPizza = new Pizza();

            _pizzaShopDbHandler = pizzaShopDbHandler;
        }
예제 #2
0
 public OrderModel(IPizzaShopDbHandler pizzaShopDbHandler)
 {
     Customer            = new Customer();
     _pizzaShopDbHandler = pizzaShopDbHandler;
 }
예제 #3
0
 public LoginModel(IPizzaShopDbHandler pizzaShopDbHandler)
 {
     _pizzaShopDbHandler = pizzaShopDbHandler;
 }
예제 #4
0
 public SignupModel(IPizzaShopDbHandler pizzaShopDbHandler)
 {
     _pizzaShopDbHandler = pizzaShopDbHandler;
 }