Esempio n. 1
0
 /// <summary>
 /// dependency created for the Interface in constructor
 ///  Dependency service is requested and used to call the methods in the interface:
 /// </summary>
 /// <param name="registerProduct"></param>
 public RegisterProductController(IRegisterProduct registerProduct)
 {
     _register = registerProduct;
 }
Esempio n. 2
0
 /// <summary>
 /// dependency created for the Interface in constructor
 ///  Dependency service is requested and used to call the methods in the interface:
 /// </summary>
 /// <param name="searchProduct"></param>
 /// <param name="reg"></param>
 public DisplayProductsController(ISearch searchProduct, IRegisterProduct reg)
 {
     _searchProduct = searchProduct;
     _reg           = reg;
 }