public AppoimtmentController(IAppoimtmentsRepository appoimtmentRepository, IMapper mapper, IModelsCarRepository modelsCarRepository) { _appoimtmentRepository = appoimtmentRepository ?? throw new ArgumentNullException(nameof(appoimtmentRepository)); _modelsCarRepository = modelsCarRepository ?? throw new ArgumentNullException(nameof(modelsCarRepository)); }
public ModelCarController(IModelsCarRepository modelsCarRepository) { _modelsCarRepository = modelsCarRepository ?? throw new ArgumentNullException(nameof(modelsCarRepository)); }