Пример #1
0
 public async Task <IEnumerable <InternetSale> > GetInternetSalesAsync(DateTime?from, DateTime?until)
 {
     return(await Process(async context =>
     {
         var query = await InternetSalesDataAccess.GetInternetSalesQueryAsync(context, from, until);
         var result = await query.ToListAsync();
         return result;
     }));
 }
Пример #2
0
 public async Task <IEnumerable <InternetSale> > GetAsync(DateTime?from = null, DateTime?until = null)
 {
     ManageVaryHeader(this.HttpContext);
     return(await InternetSalesDataAccess.GetInternetSalesQueryAsync(_context, from, until));
 }