public ActionResult _EditRole(string RoleName, int IdLevelRole, string IsActive, int Id = 0) { var db = new RoleBusiness(); Role item = new Role(); item.Id = Id; item.RoleName = RoleName; item.IsActive = bool.Parse(IsActive); item.Level = IdLevelRole; var result = db.EditRoleSystem(item); return(Json(new { result }, JsonRequestBehavior.AllowGet)); }