public OrderController(IOrderRepository orderRepository, ICustomerRepository customerRepository, IProductRepository productRepository, IExtraRepository extraRepository, IOrderProductRepository orderProductRepository) { this.orderRepository = orderRepository; this.customerRepository = customerRepository; this.productRepository = productRepository; this.extraRepository = extraRepository; this.orderProductRepository = orderProductRepository; }
public CarExtras(int currentId) { _currentId = currentId; _carExtraRepository = (ICarExtraRepository)StartUp.ServiceProvider.GetService(typeof(ICarExtraRepository)); _extraRepository = (IExtraRepository)StartUp.ServiceProvider.GetService(typeof(IExtraRepository)); _carRepository = (ICarRepository)StartUp.ServiceProvider.GetService(typeof(ICarRepository)); InitializeComponent(); OnStart(); GetData(); }
public ExtraController( IUnitOfWork unitOfWork, IExtraRepository extraRepository, IUnitRepository unitRepository, IMapper mapper) { _unitOfWork = unitOfWork; _extraRepository = extraRepository; _unitRepository = unitRepository; _mapper = mapper; }
/// <summary> /// Initializes a new instance of the <see cref="CarBrandLogic"/> class. /// </summary> /// <param name="carBrandRepository">Carbrand repo</param> /// <param name="modelRepository">Model repo</param> /// <param name="extraRepository">Extra repo</param> /// <param name="modelExtraSwitchRepository">Modelextraswitch repo</param> /// <param name="java">Java logic</param> public CarBrandLogic( ICarBrandRepository carBrandRepository, IModelRepository modelRepository, IExtraRepository extraRepository, IModelExtraSwitchRepository modelExtraSwitchRepository, IJava java) { this.carBrandRepository = carBrandRepository; this.modelRepository = modelRepository; this.extraRepository = extraRepository; this.modelExtraSwitchRepository = modelExtraSwitchRepository; this.java = java; }
public RepositoryWrapper( IDataContext context, ISlipwayRepository slipwaysRepository, IWaterRepository waterRepository, IManufacturerRepository manufacturerRepository, IServiceRepository serviceRepository, IMarinaRepository marinaRepository, IStationRepository stationRepository, IExtraRepository extraRepository) { Context = context; Slipways = slipwaysRepository; Stations = stationRepository; Marinas = marinaRepository; Services = serviceRepository; Waters = waterRepository; Manufacturers = manufacturerRepository; Extras = extraRepository; }
public ExtraController(IExtraRepository extraRepository) { this.extraRepository = extraRepository; }
private ExtrasController(IExtraRepository extraRepository) { _extraRepository = extraRepository; }