예제 #1
0
        public async Task <IHttpActionResult> RemoveFromRole(string userId, string roleId)
        {
            var removeResult = await _roleManager.RemoveFromRole(userId, roleId);

            return(removeResult.Succeeded ? Ok() : (IHttpActionResult)NotFound());
        }