Пример #1
0
        /// <summary>
        /// GetAllOrders all orders (with products included)
        /// </summary>
        /// <returns></returns>
        public async Task <IEnumerable <OrderListDto> > GetOrders()
        {
            // GetAllOrders order data from database
            _orderQuery.InjectProducts = true;
            _orderQuery.LoadCustomers  = true;
            var dbData = await _orderQuery.Execute(ProductContext);

            return(dbData);
        }