コード例 #1
0
 public CartController(Models.IProductRepository repo, Models.Cart cartService)
 {
     repository = repo;
     cart       = cartService;
 }
コード例 #2
0
 public ProductController(Models.IProductRepository productRepository)
 {
     this.productRepository = productRepository;
 }
コード例 #3
0
 public ContentController(Models.IProductRepository repository)
 {
     this.repository = repository;
 }
コード例 #4
0
 //this is the constructor.
 //'repo' which is an object of type IProductRepository is passed in as a parameter.
 //value of instance variable 'respository' object is set here
 public ProductController(Models.IProductRepository repo)
 {
     repository = repo;
 }
コード例 #5
0
 //constructor where an object of my IProductRepository class is passed in and set to the 'repository' instance variable
 public NavigationMenuViewComponent(Models.IProductRepository repo)
 {
     repository = repo;
 }