/* * Adds a new "shipment" to the database for the given day, item id, and stock quantity */ private void addAvailability(ICatalogView view, AvailabilityEventArgs e) { CatalogItemsStock shipment = new CatalogItemsStock(); shipment.CatalogItemId = e.itemId; shipment.AvailableStock = e.itemStock; shipment.Date = e.shipDate; _service.CreateAvailableStock(shipment); _view.NotifyAvailabilityUpdated(); }