Beispiel #1
0
        public IEnumerable <Instructor> GetAllInstructors(int?page, int pageSize, out int totalCount)
        {
            var instructors = _instructorRepository.GetPagedList(out totalCount, page, pageSize, null, null,
                                                                 new SortExpression <Instructor>(s => s.FirstName, ListSortDirection.Ascending));

            return(instructors);
        }