public async Task <BillingImportDuplicationResult> BillingImportDuplicationCheckAsync(string SessionKey, int CompanyId, BillingImportDuplicationWithCode[] BillingImportDuplication, ImporterSettingDetail[] ImporterSettingDetail) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = (await billingProcessor.BillingImportDuplicationCheckAsync(CompanyId, BillingImportDuplication, ImporterSettingDetail, token)).ToArray(); return new BillingImportDuplicationResult { ProcessResult = new ProcessResult { Result = true }, RowNumbers = result, }; }, logger)); }
private async Task <int[]> GetDuplicationRows(int companyId, BillingImportDuplicationWithCode[] items, ImporterSettingDetail[] details, CancellationToken token) => (await billingProcessor.BillingImportDuplicationCheckAsync(companyId, items, details, token)).ToArray();