/// <summary>
        ///     Retrieves a specific <see cref="!:CourseSelectGroupsModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:CourseSelectGroupsModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:CourseSelectGroupsModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Learning.CourseSelectGroups FetchById(ConsensusSite site, System.Int32 id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Learning.ICourseSelectGroupsModel model = provider.Learning.CourseSelectGroups.FetchById(id);
            return(model == null ? null : new Consensus.Learning.CourseSelectGroups(model));
        }
        /// <summary>
        ///     Creates a new <see cref="!:CourseSelectGroupsModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:CourseSelectGroupsModel" /> instance.
        /// </returns>
        public static Consensus.Learning.CourseSelectGroups Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Learning.ICourseSelectGroupsModel model = provider.Learning.CourseSelectGroups.Create();
            return(model == null ? null : new Consensus.Learning.CourseSelectGroups(model));
        }