Esempio n. 1
0
        public ActionResult Create()
        {
            IngredienceDao      ingredienceDao = new IngredienceDao();
            IList <Ingredience> categories     = ingredienceDao.GetAll();

            ViewBag.Categories = categories;

            return(View());
        }
Esempio n. 2
0
        public ActionResult Edit(int id)
        {
            PizzaDao       pizzaDao       = new PizzaDao();
            IngredienceDao ingredienceDao = new IngredienceDao();

            Pizza p = pizzaDao.GetById(id);

            ViewBag.Categories = ingredienceDao.GetAll();

            return(View(p));
        }