Beispiel #1
0
 public async override Task <IEnumerable <BillSummaryBO> > RunAsync(GetBillsQr process, CancellationToken cancellationToken = default)
 {
     return(await DbContext.Bills
            .Include(a => a.N_BillSettings)
            .Where(a => a.IsEnabled)
            .ProjectTo <BillSummaryBO>(Mapper.ConfigurationProvider)
            .ToListAsync());
 }
        public async override Task <IEnumerable <BillSummaryBO> > RunAsync(GetBillsQr process, CancellationToken cancellationToken = default)
        {
            try
            {
                var response = await p_LynxAPI.GetAsync <IEnumerable <BillSummaryBO> >(APIUriConstants.Bill, cancellationToken);

                return(response.ObjectContent);
            }
            catch (Exception ex)
            {
                p_ExceptionHandler.LogError(ex);

                return(BillSummaryBO.Empty());
            }
        }