public IActionResult BartenderView() { BartenderModel bartender = new BartenderModel(); if (TempData["NewOrder"] as DrinkQueue != null) { bartender.BartenderQueue.Add(TempData["NewOrder"] as DrinkQueue); } return(View(bartender)); }
public BartenderModel AjaxCallForDrinkRequest(string customerName, string drinkName, string drinkQuantity) { DrinkQueue newOrder = new DrinkQueue(); newOrder.CustomerName = customerName; newOrder.DrinkName = drinkName; newOrder.DrinkQuantity = Int32.Parse(drinkQuantity); // TempData["NewOrder"] = newOrder; BartenderModel drinkQueue = new BartenderModel(); drinkQueue.BartenderQueue.Add(newOrder); Queue.BartenderQueue.Add(newOrder); return(drinkQueue); }