Exemple #1
0
        public async Task <ExistResult> ExistSectionAsync(string SessionKey, int SectionId)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = await receiptProcessor.ExistSectionAsync(SectionId, token);

                return new ExistResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    Exist = result,
                };
            }, logger));
        }
Exemple #2
0
 public async Task <bool> ExistSection([FromBody] int SectionId, CancellationToken token)
 => await receiptProcessor.ExistSectionAsync(SectionId, token);