Exemple #1
0
 public Lesson create(Lesson lesson)
 {
     _context.Add(lesson);
     _context.SaveChanges();
     return(lesson);
 }
 public Category create(Category category)
 {
     _context.Add(category);
     _context.SaveChanges();
     return(category);
 }
Exemple #3
0
 public FinishedLesson create(FinishedLesson finishedLesson)
 {
     _context.Add(finishedLesson);
     _context.SaveChanges();
     return(finishedLesson);
 }
Exemple #4
0
 public Course create(Course course)
 {
     _context.Add(course);
     _context.SaveChanges();
     return(course);
 }
Exemple #5
0
 public Person create(Person p)
 {
     _context.Add(p);
     _context.SaveChanges();
     return(p);
 }
Exemple #6
0
 public Chapter create(Chapter chapter)
 {
     _context.Add(chapter);
     _context.SaveChanges();
     return(chapter);
 }
 public CourseInProgress create(CourseInProgress courseInProgress)
 {
     _context.Add(courseInProgress);
     _context.SaveChanges();
     return(courseInProgress);
 }