public static Lecture GetLectureOrNull(this ILectureRepository _lectureRepository, Guid id)
        {
            var lecture = _lectureRepository.GetFullLecture(id);

            if (lecture == null)
            {
                throw new Exception($"Wyklad o podanym id: {id} nie istnieje");
            }

            return(lecture);
        }