public ActionResult Update(SA_Organization entity) { if (ModelState.IsValid) { entity.LastModifiedBy = GetCurrentUserName(); entity.LastModifiedDate = DateTime.Now; _service.UpdateOrganization(entity); _service.Save(); var window = this.GetCmp <Window>("windowSA_Organization"); window.Hide(); TreePanel treePanel = this.GetCmp <TreePanel>("treePanelSAOrganization"); treePanel.GetNodeById(entity.ParentId).Reload(); return(this.Direct()); } return(this.Direct()); }