Beispiel #1
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:TrainerModel" /> instances.
        /// </summary>
        /// <param name="sellingCompanyId">
        ///     The value which identifies the <see cref="!:TrainerModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:TrainerModel" /> instances that match the specified <paramref name="sellingCompanyId" />.
        /// </returns>
        public static IEnumerable <Consensus.Contact.Trainer> FetchAllBySellingCompanyId(System.String sellingCompanyId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Trainer.FetchAllBySellingCompanyId(site, sellingCompanyId));
        }
Beispiel #2
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:TrainerModel" /> instances.
        /// </summary>
        /// <param name="otherInfoTextId">
        ///     The value which identifies the <see cref="!:TrainerModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:TrainerModel" /> instances that match the specified <paramref name="otherInfoTextId" />.
        /// </returns>
        public static IEnumerable <Consensus.Contact.Trainer> FetchAllByOtherInfoTextId(System.String otherInfoTextId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Trainer.FetchAllByOtherInfoTextId(site, otherInfoTextId));
        }
Beispiel #3
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Trainer.GetTableName(site));
        }
Beispiel #4
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:TrainerModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:TrainerModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:TrainerModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Contact.Trainer FetchById(System.String id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Trainer.FetchById(site, id));
        }
Beispiel #5
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:TrainerModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:TrainerModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Contact.Trainer> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Trainer.FetchAll(site));
        }
Beispiel #6
0
        /// <summary>
        ///     Creates a new <see cref="!:TrainerModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:TrainerModel" /> instance.
        /// </returns>
        public static Consensus.Contact.Trainer Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Trainer.Create(site));
        }
Beispiel #7
0
        /// <summary>
        ///     Check if Person exist or not.
        /// </summary>
        /// <param name="proleId">
        ///     ProleId of Role.
        /// </param>
        /// <param name="trainerId">
        ///     Id of Trainer.
        /// </param>
        /// <param name="syType">
        ///     Determines whether person is associate or trainer.
        /// </param>
        /// <returns>
        ///     Whether Person exist or not.
        /// </returns>
        public static System.Boolean CheckIfPersonIsAssociatedWithTrainer(System.String proleId, System.String trainerId, System.String syType)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Trainer.CheckIfPersonIsAssociatedWithTrainer(site, proleId, trainerId, syType));
        }