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)); }
public async Task <ActionResult <ImportResult> > Import( MasterImportData <Currency> importData, CancellationToken token = default(CancellationToken)) => await currencyProcess.ImportAsync(importData.InsertItems, importData.UpdateItems, importData.DeleteItems, token);