/// <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; }
/// <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; }