Example #1
0
        public async Task <IActionResult> GetPermissionById(int id)
        {
            await Db.Connection.OpenAsync();

            var query  = new BlogPostQuery(Db);
            var result = await query.FindOnePermission(id);

            if (result is null)
            {
                return(new NotFoundResult());
            }
            return(new OkObjectResult(result));
        }