public ActionResult SavePermission(string rolePermissions) { ChangeRecords <SA_RolePermission> records = new StoreDataHandler(rolePermissions).BatchObjectData <SA_RolePermission>(); foreach (var saRolePermission in records.Updated) { _service.InsertOrUpdateRolePermission(saRolePermission); } _service.Save(); return(this.Direct()); }