As you can see this service does not imeplement any service interface. This is OK for components you dont think you would need to offer more than one implementation. Principles: YAGNI and KISS :-)
Beispiel #1
0
		public ProductController(CategoryService categoryService, IProductService productService)
		{
			this.categoryService = categoryService;
			this.productService = productService;
		}
Beispiel #2
0
		public HomeController(IRecommendationService recommendationService, CategoryService categoryService)
		{
			this.recommendationService = recommendationService;
			this.categoryService = categoryService;
		}