/// <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); } }
/// <summary> /// Adds a new car. /// </summary> /// <param name="modell">model.</param> public void AddNewCar(modellek modell) { this.carshopdatabaseEntities1.modellek.Add(modell); }