Exemplo n.º 1
0
        public async Task <ScheduledPaymentListsResult> ScheduledPaymentListAsync(string SessionKey, int CompanyId, ScheduledPaymentListSearch ScheduledPaymentListSearch)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var reportSettingList = (await reportSettingProcessor.GetAsync(CompanyId, "PF0301", token)).ToList();
                ScheduledPaymentListSearch.CompanyId = CompanyId;
                ScheduledPaymentListSearch.ReportSettings = reportSettingList;
                var searchResult = (await scheduledPaymentListProcessor.GetAsync(ScheduledPaymentListSearch, token)).ToList();

                return new ScheduledPaymentListsResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    ScheduledPaymentLists = searchResult,
                };
            }, logger));
        }
Exemplo n.º 2
0
 public async Task <ActionResult <IEnumerable <ScheduledPaymentList> > > ScheduledPaymentList(ScheduledPaymentListSearch option, CancellationToken token)
 {
     option.ReportSettings = (await reportSettingProcessor.GetAsync(option.CompanyId, nameof(PF0301), token)).ToList();
     return((await scheduledPaymentListProcessor.GetAsync(option, token)).ToArray());
 }