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)); }
public async Task <bool> ExistSection([FromBody] int SectionId, CancellationToken token) => await receiptProcessor.ExistSectionAsync(SectionId, token);