public ActionResult GetOrders() { var orders = _orderService.GetOrders(); var orderViewModel = OrderMapper.SerializeOrdersToViewModels(orders); return(Ok(orderViewModel)); }
public ActionResult GetOrders() { _logger.LogInformation("Getting orders"); var orders = _orderService.GetOrders(); var ordersViewModel = OrderMapper.SerializeOrdersToViewModels(orders); return(Ok(ordersViewModel)); }