Exemplo n.º 1
0
        public ActionResult Update(ZhuZhaiPingGu entity)
        {
            if (ModelState.IsValid)
            {
                entity.Man5Nian         = GetCheckBoxValue(entity.Man5Nian);
                entity.LastModifiedBy   = GetCurrentUserName();
                entity.LastModifiedDate = DateTime.Now;

                _service.UpdateZhuZhaiPingGu(entity);
                _service.Save();

                var window = this.GetCmp <Window>("windowZhuZhaiPingGu");
                window.Hide();
                this.GetCmp <Store>("storeZhuZhaiPingGu").Reload();
                return(this.Direct());
            }

            return(this.Direct());
        }