public static ContactUsSearchDto ToDto(this ContactUSSearchViewModel source) { return(new ContactUsSearchDto { PageNumber = source.PageNumber, PageSize = source.PageSize }); }
public IActionResult Index(ContactUSSearchViewModel searchModel) { var data = _adminService.GetContactUs(searchModel.ToDto()); return(View_Search(searchModel, data.ToViewModel())); }