public JsonResult AddUserToRole(int roleId, int[] userIds) { var identityManager = new AspNetIdentiyAuthorizeRelay <SysUser>(); foreach (int userId in userIds) { identityManager.AddUserToRole(this.CurrentUserId, userId, roleId); } return(Json(ResultType.Success, ManagerOperateTipUtils.SELECT_SUCCESS)); }