예제 #1
0
 public ActionResult Add_Drink(Drink newDrink)
 {
     if (newDrink != null)
     {
         Drinks.Add_Drink(newDrink.Name, newDrink.Quantity);
     }
     return(RedirectToAction(nameof(Index)));
 }