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 ModelController(IModelBusinessService modelService, IStyleBusinessService styleService) { _serviceBuilder = new ServiceBuilder(); _serviceBuilder.BuildModelService(modelService); _serviceBuilder.BuildStyleService(styleService); }