예제 #1
0
        public OrderForSummaryVm GetOrderSummaryVmById(int orderId)
        {
            Order             order = _orderRepository.GetOrderById(orderId);
            OrderForSummaryVm orderForCreationVm = _mapper.Map <OrderForSummaryVm>(order);

            return(orderForCreationVm);
        }
예제 #2
0
        public IActionResult OrderSummary(int orderId)
        {
            OrderForSummaryVm orderForSummary = _orderService.GetOrderSummaryVmById(orderId);

            return(View(orderForSummary));
        }