Beispiel #1
0
 /// <summary>
 /// Deletes a car from the db.
 /// </summary>
 /// <param name="md">md.</param>
 public virtual void DeleteCar(modellek md)
 {
     if (this.carshopdatabaseEntities1.modellek.Any(o => o.Id == md.Id))
     {
         this.carshopdatabaseEntities1.modellek.Remove(md);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Adds a new car.
 /// </summary>
 /// <param name="modell">model.</param>
 public void AddNewCar(modellek modell)
 {
     this.carshopdatabaseEntities1.modellek.Add(modell);
 }