Beispiel #1
0
        public ActionResult Update(SA_Resource entity)
        {
            if (ModelState.IsValid)
            {
                entity.Show = GetCheckBoxValue(entity.Show);
                _service.UpdateResource(entity);
                _service.Save();

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

            return(this.Direct());
        }