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

            Consensus.Learning.ILearnerModel model = provider.Learning.Learner.FetchById(id);
            return(model == null ? null : new Consensus.Learning.Learner(model));
        }
예제 #2
0
        public static Consensus.Learning.Learner CancelBooking(ConsensusSite site, System.String bookId, System.String userLoginId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Learning.ILearnerModel model = provider.Learning.Learner.CancelBooking(bookId, userLoginId);
            return(model == null ? null : new Consensus.Learning.Learner(model));
        }
예제 #3
0
        /// <summary>
        ///     Creates a new <see cref="!:LearnerModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:LearnerModel" /> instance.
        /// </returns>
        public static Consensus.Learning.Learner Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Learning.ILearnerModel model = provider.Learning.Learner.Create();
            return(model == null ? null : new Consensus.Learning.Learner(model));
        }
예제 #4
0
        public static Consensus.Learning.Learner DelegatesToConfirm(ConsensusSite site, System.String bookId, System.String approver)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Learning.ILearnerModel model = provider.Learning.Learner.DelegatesToConfirm(bookId, approver);
            return(model == null ? null : new Consensus.Learning.Learner(model));
        }