public IActionResult Order(int id) { Order order = orderContainer.GetByID(id); OrderViewModel orderModel = OrderMapper.OrderViewModel(order); return(View(orderModel)); }
public IViewComponentResult Invoke() { int id = GetOrderId(); Logic.Order order = orderContainer.GetByID(id); OrderViewModel orderView = OrderMapper.OrderViewModel(order); return(View(orderView)); }