public ActionResult ChosenLunch(int id, double quantity) { string currentUserId = User.Identity.GetUserId(); _fruitsRepository.FindByIdAndChangeStateChosenLunch(id, currentUserId, quantity); return(RedirectToAction("IndexLunch")); }
public ActionResult ChosenLunch(int id, double quantity) { string currentUserId = User.Identity.GetUserId(); _fruitsRepository.FindByIdAndChangeStateChosenLunch(id, currentUserId, quantity); return(RedirectToAction("IndexLunch")); }