Beispiel #1
0
        public async Task <IActionResult> AddDishSize(DishSize dishSize)
        {
            try
            {
                await _service.AddDishSize(dishSize);

                return(RedirectToAction("Edit", "Dishes", new { @id = dishSize.DishId }));
            }
            catch (Exception ex)
            {
                return(RedirectToAction("Edit", "Dishes", new { @id = dishSize.DishId }));
            }
        }