Esempio n. 1
0
        public static int Create(bool Accept, EMailMessageAntiSpamRuleType Type, string Key, string Value, int Weight)
        {
            EMailMessageAntiSpamRuleRow newRow = new EMailMessageAntiSpamRuleRow();

            newRow.Accept   = Accept;
            newRow.RuleType = (int)Type;
            newRow.Key      = Key;
            newRow.Value    = Value;
            newRow.Weight   = Weight;

            newRow.Update();

            return(newRow.PrimaryKeyId);
        }