public ActionResult Insert(SA_Resource entity) { if (ModelState.IsValid) { entity.Show = GetCheckBoxValue(entity.Show); entity.ResourceTypeId = 0; entity.Granted = "true"; _service.AddResource(entity); _service.Save(); RefreshTree(entity.ParentId); //this.GetCmp<Store>("storeSA_Resource").Reload(); return(this.Direct()); } return(this.Direct()); }