public IActionResult GetTopping() { var toppings = client.GetAllToppings(); ViewBag.Toppings = new SelectList(toppings, "ID", "Name"); return(View()); }
public IActionResult Index() { var toppings = client.GetAllToppings(); return(View(toppings)); }