Example #1
0
 public Trip Update(Trip trip)
 {
     //_databasecontext.Entry(orderItem).State = EntityState.Modified;
     _databasecontext.SaveChanges();
     return trip;
 }
Example #2
0
 public void Delete(Trip trip)
 {
     _databasecontext.Trips.Remove(trip);
     _databasecontext.SaveChanges();
 }
Example #3
0
 public Trip Add(Trip trip)
 {
     _databasecontext.Trips.Add(trip);
     _databasecontext.SaveChanges();
     return trip;
 }