Esempio n. 1
0
 // option 2: inject it at the method level
 public static Product FetchProductByID(IProductController productController, int id)
 {
     return(productController.GetByID(id));
 }
Esempio n. 2
0
 public Product FetchProductByID(int id)
 {
     return(_productController.GetByID(id));
 }