now i want to get the email of all students who is having year 1 and program 2 below is my code by which i am getting data from student courses table , but it did not have email , email field is in student table how to achieve that .
return std.Student_courses.Where(x => x.Program_Id == program && x.Year_Id == year ).ToList();