Exemplo n.º 1
0
 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();
 }
Exemplo n.º 3
0
 public async Task <ActionResult <IEnumerable <MasterData> > > GetImportItemsForDebitBilling(MasterSearchOption option, CancellationToken token)
 => (await accountTitleProcessor.GetImportItemsDebitBillingAsync(option.CompanyId, option.Codes, token)).ToArray();
Exemplo n.º 4
0
 public async Task <IEnumerable <MasterData> > GetImportItemsForCustomerDiscount(MasterSearchOption option, CancellationToken token)
 => (await accountTitleProcessor.GetImportItemsCustomerDiscountAsync(option.CompanyId, option.Codes, token)).ToArray();
Exemplo n.º 5
0
 public async Task <IEnumerable <MasterData> > GetImportItemsSectionWithDepartment(MasterSearchOption option, CancellationToken token)
 => (await departmentProcessor.GetImportItemsSectionWithDepartmentAsync(option.CompanyId, option.Codes, token)).ToArray();
Exemplo n.º 6
0
 public async Task <ActionResult <IEnumerable <PaymentAgency> > > GetItems(MasterSearchOption option, CancellationToken token)
 => (await paymentAgencyProcessor.GetAsync(option, token)).ToArray();
Exemplo n.º 7
0
 public async Task <ActionResult <IEnumerable <MasterData> > > GetImportItemsReceipt(MasterSearchOption option, CancellationToken token)
 => (await currencyProcess.GetImportItemsReceiptAsync(option.CompanyId, option.Codes)).ToArray();
Exemplo n.º 8
0
 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) }
     };
 }
Exemplo n.º 9
0
 public async Task <IEnumerable <MasterData> > GetImportItemsLoginUser(MasterSearchOption option, CancellationToken token)
 => (await staffProcessor.GetImportItemsLoginUserAsync(option.CompanyId, option.Codes, token)).ToArray();