public void Insert(int?HostId, string Description, string BannedUrlRegex)
        {
            BannedUrlPattern item = new BannedUrlPattern();

            item.HostId = HostId;

            item.Description = Description;

            item.BannedUrlRegex = BannedUrlRegex;


            item.Save(UserName);
        }
        public void Update(int PatternId, int?HostId, string Description, string BannedUrlRegex)
        {
            BannedUrlPattern item = new BannedUrlPattern();

            item.PatternId = PatternId;

            item.HostId = HostId;

            item.Description = Description;

            item.BannedUrlRegex = BannedUrlRegex;

            item.MarkOld();
            item.Save(UserName);
        }
 public bool Destroy(object PatternId)
 {
     return(BannedUrlPattern.Destroy(PatternId) == 1);
 }
 public bool Delete(object PatternId)
 {
     return(BannedUrlPattern.Delete(PatternId) == 1);
 }