public IPagedList <StudentViewModel> Get(int?pageSize, int?pageNumber) { var filter = new StudentFilterSpecification(pageSize, pageNumber); var students = repository.List(filter); return(students.Select(s => StudentViewModel.MapFrom(s))); }