public string DeleteRule(JObject ruleName) { string ruleNameStr = ruleName.ToObject <Name>().name; if (NullString(ruleNameStr)) { return("false"); } RulesManager.DeleteRule(ruleNameStr); return("true"); }