public void addBrand(tblRimBrands brand) { using (var db = new CSCbelgiumDatabaseEntities()) { db.tblRimBrands.Add(brand); db.SaveChanges(); } }
public void deleteBrand(int brandid) { using (var db = new CSCbelgiumDatabaseEntities()) { tblRimBrands brand = getBrand(brandid); db.Entry(brand).State = EntityState.Deleted; db.SaveChanges(); } }
public void addBrand(tblRimBrands brand) { dao.addBrand(brand); }