public ActionResult Update(ZhuZhaiJiZhunJia entity) { if (ModelState.IsValid) { entity.Convert(); entity.LastModifiedBy = GetCurrentUserName(); entity.LastModifiedDate = DateTime.Now; _service.UpdateZhuZhaiJiZhunJia(entity); _service.Save(); var window = this.GetCmp <Window>("windowZhuZhaiJiZhunJia"); window.Hide(); this.GetCmp <Store>("storeZhuZhaiJiZhunJia").Reload(); return(this.Direct()); } return(this.Direct()); }