public ActionResult GetForm(string primaryKey) { SysRole entity = roleLogic.Get(primaryKey); entity.IsEnabled = entity.IsEnabled == "1" ? "true" : "false"; return(Content(entity.ToJson())); }