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