LINQ! List of two attributes in same class
Hello I have an Entity Class called Session
and it containts two attributes   LecturerOne and LectureTwo
I want to create a List<sting> of all the names in LecturerOne and LecturerTwo with distinct.

I got just LecturerOne working.

        public List<string> ListLecturer()
        {
            
            
            var lecturerNames = (from s in db.Sessions                
                                select s.LecturerOne).Distinct();
           
            List<string> lecturerList = lecturerNames.ToList(); 
            return lecturerList;
        }
LINQ! List of two attributes in same class
===

Hello I have an Entity Class called Session
and it containts two attributes   LecturerOne and LectureTwo
I want to create a List<sting> of all the names in LecturerOne and LecturerTwo with distinct.

I got just LecturerOne working.

        public List<string> ListLecturer()
        {
            
            
            var lecturerNames = (from s in db.Sessions                
                                select s.LecturerOne).Distinct();
           
            List<string> lecturerList = lecturerNames.ToList(); 
            return lecturerList;
        }