Exemple #1
0
        /// <summary>
        /// 校正对象属性
        /// </summary>
        public void ReviseProperty()
        {
            var course = CourseAccessor.Get(CourseId);

            if (course != null)
            {
                SubjectId = course.SubjectId;
            }
        }
Exemple #2
0
        /// <summary>
        /// 执行搜索
        /// </summary>
        public PagerModel <Data.Entity.Course> Search()
        {
            this.ThrowExceptionIfValidateFailure();

            PagerModel <Data.Entity.Course> pager = new PagerModel <Data.Entity.Course>()
            {
                Index = PageIndex,
                Size  = PageSize
            };

            CourseAccessor.Get(pager, Keyword, subjectId: SubjectId, status: Status);

            return(pager);
        }