예제 #1
0
        public async Task <ApplicationRoleClaim> RemoveRoleClaimAsync([FromBody] ApplicationRoleClaim roleClaim)
        {
            var result = await _roleManager.RemoveClaimAsync(new ApplicationRole()
            {
                Id = roleClaim.Id
            },
                                                             new System.Security.Claims.Claim(roleClaim.ClaimType, roleClaim.ClaimValue));

            if (!result.Succeeded)
            {
                return(roleClaim);
            }

            return(null);
        }