Пример #1
0
        /// <summary>
        ///     Creates a new <see cref="!:Communications_XrefModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:Communications_XrefModel" /> instance.
        /// </returns>
        public static Consensus.Contact.Communications_Xref Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Contact.ICommunications_XrefModel model = provider.Contact.Communications_Xref.Create();
            return(model == null ? null : new Consensus.Contact.Communications_Xref(model));
        }
Пример #2
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:Communications_XrefModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:Communications_XrefModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:Communications_XrefModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Contact.Communications_Xref FetchById(ConsensusSite site, System.Int64 id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Contact.ICommunications_XrefModel model = provider.Contact.Communications_Xref.FetchById(id);
            return(model == null ? null : new Consensus.Contact.Communications_Xref(model));
        }