예제 #1
0
        // GET: Pizza/Create
        public ActionResult Create()
        {
            Order         order = new Order();
            PizzaOrdersVM vm    = new PizzaOrdersVM(_orderRepo, _pizzaRepo, order);

            return(View(vm));
        }
예제 #2
0
        // 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));
        }