Пример #1
0
 public CoffeeController(IBeanVarietyRepository beanVarietyRepository, ICoffeeRepository coffeeRepository)
 {
     _beanVarietyRepository = beanVarietyRepository;
     _coffeeRepository      = coffeeRepository;
 }
Пример #2
0
 public BeanVarietyController(IBeanVarietyRepository beanVarietyRepository)
 {
     _beanVarietyRepository = beanVarietyRepository;
 }
 //constructor method
 public BeanVarietyController(IBeanVarietyRepository beanVarietyRepository)
 { //dependancy injection
     _beanVarietyRepository = beanVarietyRepository;
 }