예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController"/> class.
 /// </summary>
 /// <param name="dinosaurRepository">Dinosaur repository.</param>
 public HomeController(IDinosaurRepository dinosaurRepository)
 {
     this.dinosaurRepository = dinosaurRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShoppingCartController"/> class.
 /// </summary>
 /// <param name="dinosaurRepository">Dinosaur repository.</param>
 /// /// <param name="shoppingCart">Shopping cart.</param>
 public ShoppingCartController(IDinosaurRepository dinosaurRepository, ShoppingCart shoppingCart)
 {
     this.dinosaurRepository = dinosaurRepository;
     this.shoppingCart       = shoppingCart;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DinosaurController"/> class.
 /// </summary>
 /// <param name="dinosaurRepository">Dinosaur repository.</param>
 /// <param name="categoryRepository">Category repository.</param>
 public DinosaurController(IDinosaurRepository dinosaurRepository, ICategoryRepository categoryRepository)
 {
     this.dinosaurRepository = dinosaurRepository;
     this.categoryRepository = categoryRepository;
 }
 public DinosaurController(IDinosaurRepository dinoRepo, ICategoryRepository catRepo)
 {
     _dinoRepo = dinoRepo;
     _catRepo = catRepo;
 }