示例#1
0
 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;
 }
示例#2
0
 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;
 }
示例#3
0
 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;
 }