/// <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); } }
/// <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); }