Beispiel #1
0
 public UserExamSearch(UserExamSearchRequest request)
 {
     if (request != null)
     {
         StudentId = request.StudentId;
         ExamId    = request.ExamId;
         Status    = request.Status;
         PageIndex = request.PageIndex;
         PageSize  = request.PageSize;
     }
 }
Beispiel #2
0
        public IActionResult Search(UserExamSearcherViewModel model)
        {
            UserExamSearchRequest request = new UserExamSearchRequest
            {
                PageIndex = model.PageIndex,
                PageSize  = model.PageSize,
                StudentId = model.StudentId,
                ExamId    = model.ExamId,
                Status    = model.Status
            };

            var data = service.Search(request);

            return(Ok(data));
        }
Beispiel #3
0
        public IActionResult SearchMyExams(MyExamSearcherViewModel model)
        {
            long userId = Utility.GetUserContext().UserId;

            UserExamSearchRequest request = new UserExamSearchRequest
            {
                PageIndex = model.PageIndex,
                PageSize  = model.PageSize,
                StudentId = userId,
                ExamId    = model.ExamId,
                Status    = model.Status
            };

            var data = service.Search(request);

            return(Ok(data));
        }
Beispiel #4
0
        /// <summary>
        /// 搜索学员考卷信息
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public PagerModel <UserExamSearchResultItem> Search(UserExamSearchRequest request)
        {
            var searcher = new UserExamSearch(request);

            return(searcher.Search());
        }