/// <summary> /// Selects records as a collection (List) of Course sorted by the sortByExpression starting from the startRowIndex, based on the search parameters /// </summary> public static List <Course> SelectSkipAndTakeDynamicWhere(int?courseId, string courseName, DateTime?startDate, DateTime?endDate, decimal?fees, int rows, int startRowIndex, string sortByExpression) { sortByExpression = GetSortExpression(sortByExpression); return(CourseDataLayer.SelectSkipAndTakeDynamicWhere(courseId, courseName, startDate, endDate, fees, sortByExpression, startRowIndex, rows)); }