Exemple #1
0
        public async Task <IActionResult> DeleteUserRole(int id, int id1)
        {
            await Db.Connection.OpenAsync();

            var query  = new BlogPostQuery(Db);
            var result = await query.deleteUserRoles(id, id1);

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