using System.Collections.Generic;
public int Id { get; set; }
public string FullName { get; set; }
public List<Course> CoursesSuscribed { get; set; }
public int Id { get; set; }
public string CourseName { get; set; }
public static void Main()
Business business = new Business();
List<Course> johnDoeCourses = business.GetCourses(1);
Console.WriteLine(String.Format("Total courses for 'John Doe': {0}", johnDoeCourses.Count()));
List<Student> studentsInMath = business.GetStudents("Math");
Console.WriteLine(String.Format("Total students in 'Math': {0}", studentsInMath.Count()));
private List<Student> dbcontext { get; set; }
public List<Course> GetCourses(int studentId)
return new List<Course>();
public List<Student> GetStudents(string courseName)
return new List<Student>();
private void GenerateData()
Student student1 = new Student()
CoursesSuscribed = new List<Course>()
CourseName = "Literature"
Student student2 = new Student()
FullName = "Juanito Perez",
CoursesSuscribed = new List<Course>()
Student student3 = new Student()
FullName = "Perenganita Lopez",
CoursesSuscribed = new List<Course>()
dbcontext = new List<Student>();