Exemple #1
0
 public Stock(Product product)
 {
     this.product = product;
 }
Exemple #2
0
 public Stock(IRepository<Product, int> repository, int id)
 {
     this.repository = repository;
     this.product = repository.GetById(id);
 }