public WayBillController(IWayBillRepository wayBillRepository, IDriverRepository driverRepository, IVehicleRepository vehicleRepository, IRouteRepository routeRepository, ICheckpointRepository checkpointRepository, IMedicNoteRepository medicNoteRepository, IMechanicNoteRepository mechanicNoteRepository) { this.wayBillRepository = wayBillRepository ?? throw new ArgumentNullException(nameof(wayBillRepository)); this.driverRepository = driverRepository ?? throw new ArgumentNullException(nameof(driverRepository)); this.vehicleRepository = vehicleRepository ?? throw new ArgumentNullException(nameof(vehicleRepository)); this.routeRepository = routeRepository ?? throw new ArgumentNullException(nameof(routeRepository)); this.checkpointRepository = checkpointRepository ?? throw new ArgumentNullException(nameof(checkpointRepository)); this.medicNoteRepository = medicNoteRepository ?? throw new ArgumentNullException(nameof(medicNoteRepository)); this.mechanicNoteRepository = mechanicNoteRepository ?? throw new ArgumentNullException(nameof(mechanicNoteRepository)); }
public MechanicNotesController(IMechanicNoteRepository repository, UserManager <User> userManager) { this.repository = repository ?? throw new ArgumentNullException(nameof(repository)); this.userManager = userManager ?? throw new ArgumentException(nameof(userManager)); }