internal void DeleteStockItem(StockItem StockItem) { _readModel.StockItems.Attach(StockItem); _readModel.Entry(StockItem).State = EntityState.Deleted; _readModel.SaveChanges(); }
internal void UpdateStockItem(StockItem StockItem) { // _readModel.StockItems.Attach(StockItem); // _readModel.Entry(StockItem).State = EntityState.Modified; // _readModel.SaveChanges(); }
internal void SaveStockItem(StockItem StockItem) { // _readModel.StockItems.Add(StockItem); // _readModel.SaveChanges(); }
protected void SaveEvents(StockItem StockItem) { Repository.Save(StockItem); }