Exemple #1
0
 public Train Create(Train train)
 {
     dbContext.Trains.Add(train);
     dbContext.SaveChanges();
     return(train);
 }
Exemple #2
0
 public User Create(User user)
 {
     dbContext.Users.Add(user);
     dbContext.SaveChanges();
     return(user);
 }
Exemple #3
0
 public Line Create(Line line)
 {
     dbContext.Lines.Add(line);
     dbContext.SaveChanges();
     return(line);
 }