Beispiel #1
0
 /// <summary>
 /// Fetches all courses based on filter
 /// </summary>
 /// <param name="currentUser">Current user instance</param>
 /// <param name="searchKeyword">search keyword for free text search</param>
 /// <returns>List of Courses on filter</returns>
 public List <Course> FilterCourses(User currentUser, string searchKeyword)
 {
     return(currentUser.IsTrainee ? LearningPathDataAccessor.FilterCourses(searchKeyword, currentUser.UserId)
                                  : LearningPathDataAccessor.FilterCourses(searchKeyword));
 }