Example #1
0
 public OrdersController(PizzaManager pizzaManager)
 {
     this.pizzaManager = pizzaManager;
 }
Example #2
0
 public MenuController(PizzaManager pizzaManager)
 {
     this.pizzaManager = pizzaManager;
 }
Example #3
0
 void Awake()
 {
     SharedInstance = this;
 }
Example #4
0
	// Use this for initialization
	void Start () 
    {
        myIngredients = new List<string>();
        pizzaManager = GameObject.FindObjectOfType<PizzaManager>();
        GenerateIngredients();
	}
 public ActionResult PizzaDelete(PizzaModel model)
 {
     PizzaManager.RemovePizza(model);
     return(RedirectToAction("ManagePizzas"));
 }
 public ActionResult AddPizza(PizzaModel model)
 {
     PizzaManager.AddPizza(model);
     return(RedirectToAction("ManagePizzas"));
 }
        public ActionResult ManagePizzas()
        {
            List <PizzaModel> models = PizzaManager.getAllPizzas();

            return(View(models));
        }
Example #8
0
 public App()
 {
     InitializeComponent();
     PizzaManager = new PizzaManager(new PizzaService());
     MainPage     = new OrderPizza.MainPage();
 }