Beispiel #1
0
 public void Create(CoachEntity coach)
 {
     _context.Entry <CoachEntity>(coach).State = EntityState.Added;
     _context.SaveChanges();
 }
Beispiel #2
0
 public void Create(AthleteEntity athlete)
 {
     _context.Entry <AthleteEntity>(athlete).State = EntityState.Added;
     _context.SaveChanges();
 }