Exemple #1
0
        public ActionResult AjaxQuestionTypeList(int?page)
        {
            IEnumerable <QuestionTypeDTO> questionTypeDTOs = QuestionTypeService
                                                             .GetListOrderedByName()
                                                             .ToList();
            IEnumerable <QuestionTypeVM> questionTypeVMs = Mapper.Map <IEnumerable <QuestionTypeVM> >(questionTypeDTOs);

            return(PartialView(questionTypeVMs.ToPagedList(page ?? 1, _itemsPerPage)));
        }