public PhotosController(IHostingEnvironment host, IMapper mapper, IContext dbContext, IPhotoDAL photoDAL, IOptionsSnapshot <PhotoSetting> options) : base(mapper) { this.host = host; this.dbContext = dbContext; this.photoDAL = photoDAL; this.PhotoSetting = options.Value; }
public PhotosController(IHostingEnvironment host, IVehicleRepository repository, IUnitOfWork unitOfWork, IMapper mapper, IOptionsSnapshot <PhotoSetting> options, IPhotoRepository photoRepository) { this.host = host; this.repository = repository; this.unitOfWork = unitOfWork; this.mapper = mapper; this.photoRepository = photoRepository; this.photoSettting = options.Value; }
public PhotosController( IHostingEnvironment host, IVehicleRepository vehicleRepository, IPhotoRepository photoRepository, IPhotoService photoService, // IUnitOfWork unitOfWork, IMapper mapper, IOptionsSnapshot <PhotoSetting> options) { this.vehicleRepository = vehicleRepository; this.photoRepository = photoRepository; this.photoService = photoService; this.host = host; // this.unitOfWork = unitOfWork; this.mapper = mapper; this.photoSettings = options.Value; }