Example #1
0
 public StockMerchandise UpdateMerchandise(StockMerchandise merchandise)
 {
     _context.Entry <StockMerchandise>(merchandise).State = EntityState.Modified;
     return(merchandise);
 }
Example #2
0
 public OrderMerchandise(StockMerchandise stockMerchandise)
 {
     Price    = stockMerchandise.Price;
     Quantity = stockMerchandise.Quantity;
     Book     = stockMerchandise.Book;
 }
Example #3
0
 public StockMerchandise CreateMerchandise(StockMerchandise merchandise)
 {
     _context.StockMerchandises.Add(merchandise);
     _context.SaveChanges();
     return(merchandise);
 }