Exemplo n.º 1
0
 public async Task <MasterDatasResult> GetImportItemsReceiptAsync(string SessionKey, int CompanyId, string[] Code)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await currencyProcessor.GetImportItemsReceiptAsync(CompanyId, Code, token)).ToList();
         return new MasterDatasResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             MasterDatas = result,
         };
     }, logger));
 }
Exemplo n.º 2
0
 public async Task <ActionResult <IEnumerable <MasterData> > > GetImportItemsReceipt(MasterSearchOption option, CancellationToken token)
 => (await currencyProcess.GetImportItemsReceiptAsync(option.CompanyId, option.Codes)).ToArray();