public IActionResult Pizzas() { PizzaMenuContext dbcontext = new PizzaMenuContext(); var PVM = new PizzaViewModel() { Ingredients = dbcontext.Ingredients.ToList(), Pizzas = dbcontext.Pizza.ToList(), PI = dbcontext.PizzaIngredients.ToList() }; return(View("Pizzas", PVM)); }
public PizzasController(PizzaMenuContext context) { _context = context; }