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(); } }
public abstract bool SiteTypeExists(SiteType siteType);
public abstract void CreateSiteType(SiteType siteType);