Ejemplo n.º 1
0
 public void DeleteBrand(Brand brand)
 {
     _bmesDbContext.Brands.Remove(brand);
     _bmesDbContext.SaveChanges();
 }
Ejemplo n.º 2
0
 public void DeleteCategory(Category category)
 {
     _bmesDbContext.Categories.Remove(category);
     _bmesDbContext.SaveChanges();
 }
Ejemplo n.º 3
0
 void IProductRepository.DeleteProduct(Product product)
 {
     _bmesDbContext.Products.Remove(product);
     _bmesDbContext.SaveChanges();
 }