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