Beispiel #1
0
 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
 }
Beispiel #2
0
 public PojazdyController(IMapper mapper, IPojazdRepository repository, IUnitOfWork unitOfWork)
 {
     this.unitOfWork = unitOfWork;
     this.repository = repository;
     this.mapper     = mapper;
 }