/// <summary>
        ///     Creates a new <see cref="!:HistoryLinkModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:HistoryLinkModel" /> instance.
        /// </returns>
        public static Consensus.UserInterface.HistoryLink Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

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

            Consensus.UserInterface.IHistoryLinkModel model = provider.UserInterface.HistoryLink.FetchById(id);
            return(model == null ? null : new Consensus.UserInterface.HistoryLink(model));
        }
        /// <summary>
        ///     Retrieves a specific <see cref="!:CodeModel" /> instance.
        /// </summary>
        /// <returns>
        ///     The <see cref="!:CodeModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.UserInterface.HistoryLink FetchByUserIDAndURL(ConsensusSite site, System.Int32 userId, System.String URL)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.UserInterface.IHistoryLinkModel model = provider.UserInterface.HistoryLink.FetchByUserIDAndURL(userId, URL);
            return(model == null ? null : new Consensus.UserInterface.HistoryLink(model));
        }