Example #1
0
 public async Task <MFBillingsResult> GetItemsAsync(string SessionKey, int companyId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await mfBillingProcessor.GetAsync(new MFBillingSource {
             CompanyId = companyId
         }, token)).ToList();
         return new MFBillingsResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             MFBillings = result,
         };
     }, logger));
 }
Example #2
0
 public async Task <IEnumerable <MFBilling> > Get(MFBillingSource source, CancellationToken token)
 => (await mfBillingProcessor.GetAsync(source, token)).ToArray();