Exemplo n.º 1
0
 public int Create(ManualAnomaly anomaly)
 {
     db.ManualAnomalies.Add(anomaly);
     anomaly.CreationDate = DateTime.UtcNow;
     db.SaveChanges();
     return(anomaly.Id);
 }
Exemplo n.º 2
0
 public int CreateSegmentChain(SegmentChain segmentChain)
 {
     db.SegmentChains.Add(segmentChain);
     segmentChain.CreationDate = DateTime.UtcNow;
     db.SaveChanges();
     return(segmentChain.Id);
 }
Exemplo n.º 3
0
 public int Create(Trip trip)
 {
     db.Trips.Add(trip);
     db.SaveChanges();
     return(trip.Id);
 }
 public int SaveChanges()
 {
     return(db.SaveChanges());
 }