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