public ActionResult Update(DataDictionary entity) { if (ModelState.IsValid) { if (string.IsNullOrEmpty(entity.RecordType)) { entity.RecordType = RecordType.User.ToString(); } entity.LastModifiedBy = GetCurrentUserName(); entity.LastModifiedDate = DateTime.Now; _service.UpdateDataDictionary(entity); _service.Save(); var window = this.GetCmp <Window>("windowDataDictionary"); window.Hide(); this.GetCmp <Store>("storeDataDictionary").Reload(); return(this.Direct()); } return(this.Direct()); }