Example #1
0
 public Student Create(Student student)
 {
     _db.Students.Add(student);
     _db.SaveChanges();
     return(student);
 }
Example #2
0
 public Course Create(Course course)
 {
     _db.Courses.Add(course);
     _db.SaveChanges();
     return(course);
 }