Exemplo n.º 1
0
 /// <summary>
 /// Deletes an extra from the db.
 /// </summary>
 /// <param name="extra">extra.</param>
 public void DeleteExtra(extrak extra)
 {
     if (this.carshopdatabaseEntities1.extrak.Any(o => o.Id == extra.Id))
     {
         this.carshopdatabaseEntities1.extrak.Remove(extra);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a new extra to the database.
 /// </summary>
 /// <param name="extra">extra.</param>
 public void AddNewExtra(extrak extra)
 {
     this.carshopdatabaseEntities1.extrak.Add(extra);
 }