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);
 }
Exemplo n.º 2
0
 public YearController(IYearBusinessService yearService, IModelBusinessService modelService)
 {
     _serviceBuilder = new ServiceBuilder();
     _serviceBuilder.BuildModelService(modelService);
     _serviceBuilder.BuildYearService(yearService);
 }