public PhotosController( IHostingEnvironment host, IPojazdRepository repository, IUnitOfWork unitOfWork, IMapper mapper, IOptionsSnapshot <PhotoSettings> options, IPhotoRepository photoRepository) { this.photoSettings = options.Value; this.mapper = mapper; this.unitOfWork = unitOfWork; this.repository = repository; this.photoRepository = photoRepository; this.host = host; // host.WebRootPath // ścieżka do wwwroot }
public PojazdyController(IMapper mapper, IPojazdRepository repository, IUnitOfWork unitOfWork) { this.unitOfWork = unitOfWork; this.repository = repository; this.mapper = mapper; }