Esempio n. 1
0
        public ActionResult GetOrders()
        {
            var orders         = _orderService.GetOrders();
            var orderViewModel = OrderMapper.SerializeOrdersToViewModels(orders);

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

            return(Ok(ordersViewModel));
        }