예제 #1
0
        public ActionResult Update(SA_Role entity)
        {
            if (ModelState.IsValid)
            {
                entity.LastModifiedBy   = GetCurrentUserName();
                entity.LastModifiedDate = DateTime.Now;

                _service.UpdateRole(entity);
                _service.Save();

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

            return(this.Direct());
        }