// GET: Pizza/Create public ActionResult Create() { Order order = new Order(); PizzaOrdersVM vm = new PizzaOrdersVM(_orderRepo, _pizzaRepo, order); return(View(vm)); }
// GET: Pizza/Details/5 public async Task <IActionResult> Details(Guid orderId) { if (orderId == null) { return(BadRequest()); } var order = await _orderRepo.GetOrderAsync(orderId); PizzaOrdersVM vm = new PizzaOrdersVM(_orderRepo, _pizzaRepo, order); return(View(vm)); }