public async Task <IHttpActionResult> RemoveFromRole(string userId, string roleId) { var removeResult = await _roleManager.RemoveFromRoleAsync(userId, roleId); return(removeResult.Succeeded ? Ok() : (IHttpActionResult)NotFound()); }
public async Task RemoveFromRoleAsync(TUser user, string roleId) { await Task.FromResult(_userRoleManager.RemoveFromRoleAsync(user, roleId)); }