public async Task <ExistResult> ExistSectionAsync(string SessionKey, int SectionId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await sectionWithLoginUserProcessor.ExistSectionAsync(SectionId, token); return new ExistResult { ProcessResult = new ProcessResult { Result = true }, Exist = result, }; }, logger)); }
public async Task <ActionResult <bool> > ExistSection([FromBody] int sectionId, CancellationToken token) => await sectionWithLoginUserProcessor.ExistSectionAsync(sectionId, token);