示例#1
0
 public static SearchEducationDto ToDto(this EducationSearchViewModel source)
 {
     return(new SearchEducationDto
     {
         PageNumber = source.PageNumber,
         PageSize = source.PageSize
     });
 }
        public IActionResult Index(EducationSearchViewModel searchModel)
        {
            var data = _adminService.GetEducations(searchModel.ToDto());

            return(View_Search(searchModel, data.ToViewModel()));
        }
示例#3
0
        public IActionResult Education(EducationSearchViewModel model)
        {
            var data = _userService.GetAllEducations(model.ToDto());

            return(View(data.ToViewModel()));
        }