public override void CreateSiteType(SiteType siteType)
        {
            if (string.IsNullOrEmpty(siteType.Name))
            {
                throw new ProviderException("Site Type name cannot be empty or null.");
            }
            if (siteType.Name.IndexOf(',') > 0)
            {
                throw new ArgumentException("Site Type names cannot contain commas.");
            }

            using (var transaction = new TransactionScope(_configuration))
            {
                var stDs = new SiteTypeDataStore(transaction);
                stDs.Insert(siteType);
                transaction.Commit();
            }
        }
Esempio n. 2
0
 public abstract bool SiteTypeExists(SiteType siteType);
Esempio n. 3
0
 public abstract void CreateSiteType(SiteType siteType);