public async Task <CollationSettingResult> SaveAsync(string SessionKey, CollationSetting CollationSetting, CollationOrder[] CollationOrder, MatchingOrder[] MatchingBillingOrder, MatchingOrder[] MatchingReceiptOrder) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { CollationSetting.CollationOrders = CollationOrder; CollationSetting.BillingMatchingOrders = MatchingBillingOrder; CollationSetting.ReceiptMatchingOrders = MatchingReceiptOrder; var result = await collationSettingProcessor.SaveAsync(CollationSetting, token); return new CollationSettingResult { ProcessResult = new ProcessResult { Result = true }, CollationSetting = result, }; }, logger)); }
public async Task <CollationSetting> Save(CollationSetting setting, CancellationToken token) => await collationSettingProcessor.SaveAsync(setting, token);