public async Task <IEnumerable <PaymentAgency> > GetAsync(MasterSearchOption option, CancellationToken token = default(CancellationToken)) { if (option.Ids?.Any() ?? false) { return(await paymentAgencyGetByIdsQueryProcessor.GetByIdsAsync(option.Ids, token)); } return(await masterGetByCodesQueryProcessor.GetByCodesAsync(option.CompanyId, option.Codes, token)); }
public Task <LongTermAdvanceReceivedContract> GetByCode(MasterSearchOption option) { throw new NotImplementedException(); }
public async Task <ActionResult <IEnumerable <MasterData> > > GetImportItemsForDebitBilling(MasterSearchOption option, CancellationToken token) => (await accountTitleProcessor.GetImportItemsDebitBillingAsync(option.CompanyId, option.Codes, token)).ToArray();
public async Task <IEnumerable <MasterData> > GetImportItemsForCustomerDiscount(MasterSearchOption option, CancellationToken token) => (await accountTitleProcessor.GetImportItemsCustomerDiscountAsync(option.CompanyId, option.Codes, token)).ToArray();
public async Task <IEnumerable <MasterData> > GetImportItemsSectionWithDepartment(MasterSearchOption option, CancellationToken token) => (await departmentProcessor.GetImportItemsSectionWithDepartmentAsync(option.CompanyId, option.Codes, token)).ToArray();
public async Task <ActionResult <IEnumerable <PaymentAgency> > > GetItems(MasterSearchOption option, CancellationToken token) => (await paymentAgencyProcessor.GetAsync(option, token)).ToArray();
public async Task <ActionResult <IEnumerable <MasterData> > > GetImportItemsReceipt(MasterSearchOption option, CancellationToken token) => (await currencyProcess.GetImportItemsReceiptAsync(option.CompanyId, option.Codes)).ToArray();
public async Task <ActionResult <IEnumerable <ReminderTemplateSetting> > > GetReminderTemplateSettingByCode(MasterSearchOption option, CancellationToken token) { if (string.IsNullOrEmpty(option.Code)) { return((await reminderTemplateSettingProcessor.GetItemsAsync(option.CompanyId, token)).ToArray()); } else { return new[] { await reminderTemplateSettingProcessor.GetByCodeAsync(option.CompanyId, option.Code, token) } }; }
public async Task <IEnumerable <MasterData> > GetImportItemsLoginUser(MasterSearchOption option, CancellationToken token) => (await staffProcessor.GetImportItemsLoginUserAsync(option.CompanyId, option.Codes, token)).ToArray();