public IEnumerable <GetLectureDTO> GetLecturesAvailableForEnroll(int userId) { var student = _studentRepository.GetStudentByUserId(userId); var lectureEntites = _repository.GetLecturesAvailableForEnroll(userId, student.CurrentSemester); return(Mapper.Map <IEnumerable <GetLectureDTO> >(lectureEntites)); }