public async Task <IActionResult> Get() { var orders = await orderService.GetOrdersAsync(); var orderDTOs = orders.Aggregate(new List <OrderDTO>(), (result, order) => { result.Add(OrderDTO.FromEntity(order)); return(result); }); return(Ok(orderDTOs)); }