public IActionResult Order(int id)
        {
            Order          order      = orderContainer.GetByID(id);
            OrderViewModel orderModel = OrderMapper.OrderViewModel(order);

            return(View(orderModel));
        }
Exemple #2
0
        public IViewComponentResult Invoke()
        {
            int id = GetOrderId();

            Logic.Order    order     = orderContainer.GetByID(id);
            OrderViewModel orderView = OrderMapper.OrderViewModel(order);

            return(View(orderView));
        }