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();
     }
 }
Example #3
0
 public void addBrand(tblRimBrands brand)
 {
     dao.addBrand(brand);
 }