Пример #1
0
        public void OnPostSaveMealName()
        {
            LoadPageProperties(this.MealId);

            this.Meal.MealName = this.MealName;
            MealRepo.SaveChanges();

            EditMealMode = false;
        }
Пример #2
0
        public void OnPostUpdateMeal([FromForm] Meal meal)
        {
            LoadPageProperties(meal.MealID);
            this.Meal.Recipe = meal.Recipe;
            MealRepo.SaveChanges();

            //TODO Show Meal Saved Banner
            //show meal saved = true;
            MealSavedMsg = true;
        }