Example #1
0
 public void DeleteMaint(maintInfo toDelete)
 {
     carDataDb.maintInfo.DeleteOnSubmit(toDelete);
     Maint.Remove(toDelete);
     carDataDb.SubmitChanges();
 }
Example #2
0
 public void AddMaint(maintInfo newMaint)
 {
     carDataDb.maintInfo.InsertOnSubmit(newMaint);
     carDataDb.SubmitChanges();
     Maint.Add(newMaint);
 }