Exemplo n.º 1
0
        //Edit MealIngredient
        public ActionResult ProcessMealIngredientToEdit(MealIngredientViewModel ingredientToEdit)
        {
            var MealDBInterface = new MealDAO();
            var mealId          = ingredientToEdit.MealId;

            MealDBInterface.UpdateMealIngredient(ingredientToEdit);
            var mealToDisplay = new MealViewModel();

            mealToDisplay = MealDBInterface.FetchMeal(mealId);
            return(View("MealForm", mealToDisplay));
        }