Exemplo n.º 1
0
        //
        // GET: /Ingredients/
        public ActionResult Index()
        {
            var ingredientList = _ingredientApplicationService.GetAllIngredients();

            ViewData.Model = ingredientList;
            //return View(ingredientList);
            return(View());
        }
Exemplo n.º 2
0
        public ActionResult CreateProduct()
        {
            InitViewData();

            ViewData["Ingredients"] = _ingredientApplicationService.GetAllIngredients();

            return(View());
        }
        public ActionResult Create(int?id)
        {
            var ingredients = _ingredientApplicationService.GetAllIngredients();

            ViewData["Ingredients"] = new SelectList(ingredients, "Id", "IngredientName", id);;
            ViewData["Semaphores"]  = _semaphoreApplicationService.GetAllSemaphores();
            SetAdviceTagViewData();
            return(View());
        }