예제 #1
0
        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));
        }
예제 #2
0
 public async Task <ActionResult <bool> > ExistLoginUser([FromBody] int loginUserId, CancellationToken token)
 => await sectionWithLoginUserProcessor.ExistLoginUserAsync(loginUserId, token);