/// <summary> /// Adds a jurisdiction to the system, only if it does not exist. /// </summary> private static void AddInitialNewsletter(this IDynamicsClient context, ViewModels.Newsletter initialNewsletter) { Newsletter newsletter = context.GetNewsletterBySlug(initialNewsletter.slug); if (newsletter != null) { return; } newsletter = new Newsletter ( initialNewsletter.slug, initialNewsletter.title, initialNewsletter.description ); context.AddNewsletter(newsletter); }