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