Example #1
0
 public async Task <ImportResult> ImportAsync(string SessionKey,
                                              Currency[] InsertList, Currency[] UpdateList, Currency[] DeleteList)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await currencyProcessor.ImportAsync(InsertList, UpdateList, DeleteList, token);
         return result;
     }, logger));
 }
Example #2
0
 public async Task <ActionResult <ImportResult> > Import(
     MasterImportData <Currency> importData,
     CancellationToken token = default(CancellationToken))
 => await currencyProcess.ImportAsync(importData.InsertItems, importData.UpdateItems, importData.DeleteItems, token);