public CommonController(IManufacturerBusinessService manufacturerService, IStyleBusinessService styleService, IModelBusinessService modelService, IYearBusinessService yearService) { _serviceBuilder = new ServiceBuilder(); _serviceBuilder.BuildManufacturerService(manufacturerService); _serviceBuilder.BuildStyleService(styleService); _serviceBuilder.BuildModelService(modelService); _serviceBuilder.BuildYearService(yearService); }
public YearController(IYearBusinessService yearService, IModelBusinessService modelService) { _serviceBuilder = new ServiceBuilder(); _serviceBuilder.BuildModelService(modelService); _serviceBuilder.BuildYearService(yearService); }