public async Task <ExistResult> ExistNonOutputedReceiptAsync(string SessionKey, int CompanyId, DateTime ClosingFrom, DateTime ClosingTo) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await receiptProcessor.ExistNonOutputedAsync(CompanyId, ClosingFrom, ClosingTo, token); return new ExistResult { ProcessResult = new ProcessResult { Result = true }, Exist = result, }; }, logger)); }
public async Task <bool> ExistNonOutputedReceipt(ClosingSearch option, CancellationToken token) => await receiptProcessor.ExistNonOutputedAsync(option.CompanyId, option.ClosingAtFrom, option.ClosingAtTo, token);