// Add New Seller Market Entry to Auction public void AddSellerMarketEntry(MarketEntryFormViewModel viewModel, string userId) { var marketEntry = MarketEntry.CreateSellerEntry(userId, EntryType.Supply, Id, viewModel.FinalProductId, viewModel.EntryQuantity, viewModel.EntryPrice, viewModel.DeliveryDate); MarketEntries.Add(marketEntry); }
// Add New Buyer Market Entry to Auction public void AddBuyerMarketEntry(MarketEntryFormViewModel viewModel, string userId) { var marketEntry = MarketEntry.CreateBuyerEntry(userId, EntryType.Demand, Id, viewModel.ProductId, viewModel.ProductQualityId, viewModel.EntryQuantity, viewModel.EntryPrice, viewModel.DeliveryDate, viewModel.DeliveryLocation); MarketEntries.Add(marketEntry); }