@@ -60,7 +60,7 @@ public IActionResult Index(
6060 int ? itemsPerPage = 10
6161 )
6262 {
63- searchString = searchString == null ? string . Empty : searchString . Trim ( ) ;
63+ searchString = searchString == null ? string . Empty : searchString . Trim ( ) ;
6464 sortBy ??= DefaultSortByOptions . Name . PropertyName ;
6565 sortDirection ??= GenericSortingHelper . Ascending ;
6666
@@ -131,13 +131,13 @@ public IActionResult Index(
131131 }
132132 }
133133
134- var ( courses , resultCount ) = courseService . GetCentreCourses ( searchString ?? string . Empty , offSet , ( int ) itemsPerPage , sortBy , sortDirection , centreId , categoryId , true , null ,
134+ var ( courses , resultCount ) = courseService . GetCentreCourses ( searchString ?? string . Empty , offSet , ( int ) itemsPerPage , sortBy , sortDirection , centreId , categoryId , true , null ,
135135 isActive , categoryName , courseTopic , hasAdminFields ) ;
136136 if ( courses . Count ( ) == 0 && resultCount > 0 )
137137 {
138138 page = 1 ;
139139 offSet = 0 ;
140- ( courses , resultCount ) = courseService . GetCentreCourses ( searchString ?? string . Empty , offSet , ( int ) itemsPerPage , sortBy , sortDirection , centreId , categoryId , true , null ,
140+ ( courses , resultCount ) = courseService . GetCentreCourses ( searchString ?? string . Empty , offSet , ( int ) itemsPerPage , sortBy , sortDirection , centreId , categoryId , true , null ,
141141 isActive , categoryName , courseTopic , hasAdminFields ) ;
142142 }
143143
0 commit comments