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