public ActionResult GetUserRightsList(DataSourceRequest request, int RoleId) { List <AssignRoleList_Result> list = CustomRepository.GetUserRoleRights(RoleId); return(Json(list.ToDataSourceResult(request))); }