Beispiel #1
0
 public void UpdateProduct(Product product)
 {
     using (var ctx = new FreeSmokyMarketContext())
     {
         ctx.Update(product);
         ctx.SaveChanges();
     }
 }
 public void UpdateCategory(Category category)
 {
     using (var ctx = new FreeSmokyMarketContext())
     {
         ctx.Update(category);
         ctx.SaveChanges();
     }
 }
 public void UpdateBrand(Brand brand)
 {
     using (var ctx = new FreeSmokyMarketContext())
     {
         ctx.Update(brand);
         ctx.SaveChanges();
     }
 }