예제 #1
0
 public Product AddProduct(Product objProduct)
 {
     _db.Products.Add(objProduct);
     _db.SaveChanges();
     return(objProduct);
 }
예제 #2
0
 public Stock AddStock(Stock obj)
 {
     _db.Stocks.Add(obj);
     _db.SaveChanges();
     return(obj);
 }