예제 #1
0
 public static SearchEducationDto ToDto(this EducationSearchViewModel source)
 {
     return(new SearchEducationDto
     {
         PageNumber = source.PageNumber,
         PageSize = source.PageSize
     });
 }
예제 #2
0
        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()));
        }