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

            return(removeResult.Succeeded ?  Ok() : (IHttpActionResult)NotFound());
        }
Example #2
0
 public async Task RemoveFromRoleAsync(TUser user, string roleId)
 {
     await Task.FromResult(_userRoleManager.RemoveFromRoleAsync(user, roleId));
 }