예제 #1
0
    private long RulesetAddHandler()
    {
        string sName = "";
        RuleSet rsNew = new RuleSet(m_refContentApi.RequestInformationRef);

        if (!string.IsNullOrEmpty(Request.Form["txtRulesetName"]))
            sName = Request.Form["txtRulesetName"];
        rsNew.SetName(sName);
        if (!string.IsNullOrEmpty(Request.Form["txtIdentifier"]))
        {
            rsNew.SetIdentifier(Request.Form["txtIdentifier"]);
        }
        rsNew.Save();
        return rsNew.ID;
    }