예제 #1
0
 public async Task <InvoiceNumberHistoriesResult> GetInvoiceNumberHistoriesAsync(string SessionKey, int CompanyId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await invoiceNumberHistoryProcessor.GetItemsAsync(CompanyId, token);
         return new InvoiceNumberHistoriesResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             InvoiceNumberHistories = result.ToList(),
         };
     }, logger));
 }
예제 #2
0
 public async Task <ActionResult <IEnumerable <InvoiceNumberHistory> > > GetInvoiceNumberHistories([FromBody] int companyId, CancellationToken token)
 => (await invoiceNumberHistoryProcessor.GetItemsAsync(companyId, token)).ToArray();