public async Task <ExistResult> ExistSectionAsync(string SessionKey, int SectionId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await bankAccountProcessor.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 bankAccountProcessor.ExistSectionAsync(SectionId, token);