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