コード例 #1
0
        public IActionResult EditDish(DishModificationModel dish)
        {
            if (ModelState.IsValid)
            {
                _dishService.AddOrUpdate(dish);
                return(RedirectToAction(nameof(Index)));
            }

            return(View(_dishService.AddCategoriesAndProductsSelectList(dish)));
        }