public void AddCourseToPlan(string planName, string username, Course course)
 {
     var thePlan = GetPlanByName(planName, username);
     thePlan.Courses.Add(course);
     course.Order = thePlan.Courses.Max(c => c.Order) + 1;
     _context.Courses.Add(course);
 }
 public void AddNewCourseToPlan(string planName, string username, Course newCourse)
 {
     var thePlan = GetPlanByName(planName, username);
     thePlan.Courses.Add(newCourse);
     newCourse.Order = thePlan.Courses.Max(c => c.Order) + 1;
     newCourse.PlanName = planName;
     _context.Courses.Add(newCourse);
 }
 public void AddNewCourse(Course newCourse)
 {
     _context.Courses.Add(newCourse);
 }