Exemple #1
0
        public async Task <ExistResult> ExistCategoryAsync(string sessionKey, int id)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token =>
            {
                var result = await ignoreKanaProcessor.ExistCategoryAsync(id, token);

                return new ExistResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    Exist = result,
                };
            }, logger));
        }
 public async Task <ActionResult <bool> > ExistCategory([FromBody] int id, CancellationToken token)
 => await ignoreKanaProcessor.ExistCategoryAsync(id, token);