Beispiel #1
0
 public virtual void AddProduct(Product product)
 {
     product.StoresStockedIn.Add(this);
     Products.Add(product);
 }
Beispiel #2
0
 public void CreateForStore(Product product, int storeId)
 {
     var store = _storeRepository.GetById(storeId);
     store.AddProduct(product);
     _storeRepository.Update(store);
 }
Beispiel #3
0
 public void Update(Product product)
 {
     _productRepository.Update(product);
 }
Beispiel #4
0
 public void Create(Product product)
 {
     _productRepository.Create(product);
 }