예제 #1
0
 public RedirectToRouteResult UpdateQuantity(Cart cart, int ID, int quantity, string returnUrl)
 {
     FOOD food = _repository.Foods.FirstOrDefault(p => p.ID == ID);
     cart.UpdateQuantity(food, quantity);
     return RedirectToAction("Index", new {returnUrl});
 }