public IActionResult GetCrust() { var crusts = client.GetAllCrusts(); ViewBag.Crusts = new SelectList(crusts, "ID", "Name"); return(View()); }
public IActionResult Index() { var crusts = client.GetAllCrusts(); return(View(crusts)); }