/// <summary> /// Save changes to existing Stock Item in database /// </summary> /// <param name="model"></param> public void SaveStockItem(StockItem model) { _context.StockItems.Update(model); _context.SaveChanges(); }
/// <summary> /// Add new Stock Item to database /// </summary> /// <param name="model"></param> public void AddStockItem(StockItem model) { _context.StockItems.Add(model); _context.SaveChanges(); }