Exemplo n.º 1
0
 public IActionResult AddMenuItemToCategory(int foodCategoryId, int menuItemId)
 {
     menuRepository.AddMenuItemToCategory(foodCategoryId, menuItemId);
     TempData["message"] = "We successfully added your menu item to this section.\r\n" +
                           "Note that it can only exist in one section at a time";
     return(RedirectToAction(nameof(ManageFoodCategory), new { foodCategoryId }));
 }