Esempio n. 1
0
        public async Task <ExistResult> ExistNonApportionedReceiptAsync(string SessionKey,
                                                                        int CompanyId,
                                                                        DateTime ClosingFrom,
                                                                        DateTime ClosingTo)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = await receiptProcessor.ExistNonApportionedAsync(CompanyId, ClosingFrom, ClosingTo, token);

                return new ExistResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    Exist = result,
                };
            }, logger));
        }
Esempio n. 2
0
 public async Task <bool> ExistNonApportionedReceipt(ClosingSearch option, CancellationToken token)
 => await receiptProcessor.ExistNonApportionedAsync(option.CompanyId, option.ClosingAtFrom, option.ClosingAtTo, token);