public async Task <IActionResult> OrderDetail(int id) { OrderDTO orderDto = await _orderService.GetOrderById(id); Order order = orderDto.FromDTO(); OrderDetailViewModel viewModel = new OrderDetailViewModel { Id = order.Id, Address = order.Address, Phone = order.Phone, Cart = order.ToCartViewModel(), User = order.User.ToViewModel() }; if (order is null) { return(NotFound()); } return(View(viewModel)); }