Ejemplo n.º 1
0
 public GetPersonInfoPersonMapper(IPhotoUploadService photoUploadService,
                                  ICustomMapperInterface <PhoneNumber, GetPersonInfoPhoneNumberDto> phoneNumberMapper,
                                  ICustomMapperInterface <Relation, GetPersonInfoRelationDto> relationMapper)
 {
     _photoUploadService = photoUploadService;
     _phoneNumberMapper  = phoneNumberMapper;
     _relationMapper     = relationMapper;
 }
Ejemplo n.º 2
0
 public PhotosController(
     IUserRepository userRepository,
     IPhotoRepository photoRepository,
     IPhotoUploadService photoUploadService,
     IMapper mapper)
 {
     this._userRepository     = userRepository;
     this._photoRepository    = photoRepository;
     this._photoUploadService = photoUploadService;
     this._mapper             = mapper;
 }
Ejemplo n.º 3
0
 public ProfileController(IUserRepository repo, IMapper mapper, IPhotoUploadService photoService)
 {
     // _cloudinaryConfig = cloudinaryConfig;
     _mapper       = mapper;
     _repo         = repo;
     _photoService = photoService;
     // Account acc = new Account (
     //     _cloudinaryConfig.Value.CloudName,
     //     _cloudinaryConfig.Value.ApiKey,
     //     _cloudinaryConfig.Value.ApiSecret
     // );
     // _cloudinary = new Cloudinary(acc);
 }
 public TeamLeaderController(
     IProfileDataService profileDataService,
     IEmployeeService employeeService,
     IPageListsService pageListsService,
     IEmployeeListService employeeListService,
     IRequestService requestService,
     ITeamService teamService,
     IPhotoUploadService photoUploadService,
     IRequestCreationService requestCreationService)
 {
     _profileDataService     = profileDataService;
     _employeeService        = employeeService;
     _pageListsService       = pageListsService;
     _employeeListService    = employeeListService;
     _requestProcessService  = requestService;
     _teamService            = teamService;
     _photoUploadService     = photoUploadService;
     _requestCreationService = requestCreationService;
 }
Ejemplo n.º 5
0
 public PhotosController(IMapper mapper,
                         IPhotoRepository photoRepository, ICategoryRepository categoryRepository, IUserRepository userRepository,
                         ICommentRepository commentRepository, IAlbumRepository albumRepository, IUnitOfWork unitOfWork, IPhotoUploadService photoUploadService,
                         IWebHostEnvironment host, IObjectDetectionService objectDetectionService)
 {
     this.objectDetectionService = objectDetectionService;
     this.host = host;
     this.photoUploadService = photoUploadService;
     this.unitOfWork         = unitOfWork;
     this.photoRepository    = photoRepository;
     this.categoryRepository = categoryRepository;
     this.userRepository     = userRepository;
     this.commentRepository  = commentRepository;
     this.albumRepository    = albumRepository;
     this.mapper             = mapper;
     this.uploadsFolderPath  = Path.Combine(host.WebRootPath, "uploads");
     this.uploadsFolderUrl   = "/uploads";
     this.outputFolderPath   = Path.Combine(host.WebRootPath, "uploads", "output");
     this.outputFolderUrl    = "/uploads/output";
 }
Ejemplo n.º 6
0
 public AdminController(
     IProfileDataService profileDataService,
     IEmployeeService employeeService,
     IPageListsService pageListsService,
     IEmployeeListService adminEmployeeListService,
     IRequestService requestService,
     ITeamService teamService,
     IPhotoUploadService photoUploadService,
     IValidateService validateService,
     IRequestCreationService requestCreationService)
 {
     _profileDataService     = profileDataService;
     _employeeService        = employeeService;
     _pageListsService       = pageListsService;
     _employeeListService    = adminEmployeeListService;
     _requestProcessService  = requestService;
     _teamService            = teamService;
     _photoUploadService     = photoUploadService;
     _validateService        = validateService;
     _requestCreationService = requestCreationService;
 }
 public CustomPersonEntityServiceMapper(IPhotoUploadService photoUploadService)
 {
     _photoUploadService = photoUploadService;
 }
Ejemplo n.º 8
0
 public PhotoService()
 {
     photoUploadService =
         new PhotoUploadService.PhotoUploadService(CloudAccount);
 }
 public UpdatePersonImageHandler(IApplicationDbContext context, ILogger <UpdatePersonImageHandler> logger, IPhotoUploadService photoUploadService)
 {
     _context            = context;
     _logger             = logger;
     _photoUploadService = photoUploadService;
 }
Ejemplo n.º 10
0
 public PhotosController(IDataRepository <Photo> dataRepository, IHostingEnvironment hostingEnvironment,
                         IPhotoUploadService photoUploadService) : base(dataRepository, null)
 {
     this._photoUploadService = photoUploadService;
     _photoUploadPath         = $"{hostingEnvironment.WebRootPath}";
 }
 public GetPersonInfoRelatedPersonMapper(IPhotoUploadService photoUploadService)
 {
     _photoUploadService = photoUploadService;
 }
Ejemplo n.º 12
0
        public MappingProfile(IPhotoUploadService photoUploadService)
        {
            PhotoUploadService = photoUploadService;

            ApplyMappingsFromAssembly(Assembly.GetExecutingAssembly());
        }
Ejemplo n.º 13
0
 public HomePageController(IHostingEnvironment hostingEnvironment, IPhotoUploadService photoUploadService)
 {
     _photoUploadService = photoUploadService;
     _webrootPath        = string.Concat(hostingEnvironment.WebRootPath, "/");
 }