Esempio n. 1
0
        public async Task <IActionResult> AddDishExtraType(DishExtraType extra, int returnId)
        {
            try
            {
                await _service.AddDishExtraType(extra);

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