public ActionResult Update(SA_ResourceType entity) { if (ModelState.IsValid) { _service.UpdateResourceType(entity); _service.Save(); var window = this.GetCmp <Window>("windowSA_Resource"); window.Hide(); this.GetCmp <Store>("storeSA_Resource").Reload(); return(this.Direct()); } return(this.Direct()); }