public void AddStudentToActivity(Activity activity, Student student) { _context.Add(new Student_Activity { StudentId = student.Id, ActivityId = activity.Id, Student = student, Activity = activity, }); _context.SaveChanges(); }
public void AddStudentToSemester(Semester semester, Student student) { _context.Add(new Semester_Student { StudentId = student.Id, SemesterId = semester.Id, Student = student, Semester = semester, }); _context.SaveChanges(); }
public void Add(Semester newSemester) { _context.Add(newSemester); _context.SaveChanges(); }
public void Add(Activity newActivity) { _context.Add(newActivity); _context.SaveChanges(); }
public void Add(Course newCourse) { _context.Add(newCourse); _context.SaveChanges(); }
public void Add(Teacher newTeacher) { _context.Add(newTeacher); _context.SaveChanges(); }
public void Add(Student newStudent) { _context.Add(newStudent); _context.SaveChanges(); }
public void Add(Subject newSubject) { _context.Add(newSubject); _context.SaveChanges(); }