public OrderForSummaryVm GetOrderSummaryVmById(int orderId) { Order order = _orderRepository.GetOrderById(orderId); OrderForSummaryVm orderForCreationVm = _mapper.Map <OrderForSummaryVm>(order); return(orderForCreationVm); }
public IActionResult OrderSummary(int orderId) { OrderForSummaryVm orderForSummary = _orderService.GetOrderSummaryVmById(orderId); return(View(orderForSummary)); }