Beispiel #1
0
 public Driver Update(Driver driver)
 {
     //_databasecontext.Entry(order).State = EntityState.Modified;
     _databasecontext.SaveChanges();
     return driver;
 }
Beispiel #2
0
 public void Delete(Driver driver)
 {
     _databasecontext.Drivers.Remove(driver);
     _databasecontext.SaveChanges();
 }
Beispiel #3
0
 public Driver Add(Driver driver)
 {
     _databasecontext.Drivers.Add(driver);
     _databasecontext.SaveChanges();
     return driver;
 }