예제 #1
0
 /// <summary>
 /// Deletes brand from the db.
 /// </summary>
 /// <param name="auto">auto.</param>
 public void DeleteBrand(automarkak auto)
 {
     if (this.carshopdatabaseEntities1.automarkak.Any(o => o.Id == auto.Id))
     {
         this.carshopdatabaseEntities1.automarkak.Remove(auto);
     }
 }
예제 #2
0
 /// <summary>
 /// Adds a new brand to the database.
 /// </summary>
 /// <param name="auto">car brand.</param>
 public virtual void AddNewBrand(automarkak auto)
 {
     this.carshopdatabaseEntities1.automarkak.Add(auto);
 }