public ActionResult Insert(SA_Role entity) { if (ModelState.IsValid) { entity.CreatedBy = GetCurrentUserName(); entity.CreatedDate = DateTime.Now; _service.AddRole(entity); _service.Save(); this.GetCmp <Window>("windowSA_Role").Hide(); this.GetCmp <Store>("storeSA_Role").Reload(); return(this.Direct()); } return(this.Direct()); }