Beispiel #1
0
        public async Task <List <OrderDTO> > GetUserLatestOrders(string userID)
        {
            var orders = await _queries.GetUserOrders(userID);

            if (orders == null || orders.Count == 0)
            {
                throw new Exception("Couldn't find any orders");
            }
            else
            {
                return(orders);
            }
        }