Beispiel #1
0
 public void Update(Product product)
 {
     if (product != null)
     {
         Context.Entry(product).State = EntityState.Modified;
     }
 }
Beispiel #2
0
 public void Create(Product product)
 {
     if (product != null)
     {
         Context.Products.Add(product);
     }
 }