public PostImagesController(ApplicationContext context, IPostRepository postRepository, IPostImageRepository postImageRepository, IFileUpload fileUpload)
 {
     this._postRepository      = postRepository;
     this._postImageRepository = postImageRepository;
     this._fileUpload          = fileUpload;
     _context = context;
 }
        public PostImagesController(IFileUpload fileUpload, ApplicationContext _context, IPostImageRepository postImageRepository, IPostRepository postRepository, ApplicationContext context)
        {
            _context                  = context;
            this._fileUpload          = fileUpload;
            this._postImageRepository = postImageRepository;

            this._postRepository = postRepository;
        }
 public PostImageController(IPostImageRepository postImageRepository,
                            IUnitOfWork unitOfWork,
                            IMapper mapper,
                            IHostingEnvironment hostingEnvironment)
 {
     _postImageRepository = postImageRepository;
     _unitOfWork          = unitOfWork;
     _mapper             = mapper;
     _hostingEnvironment = hostingEnvironment;
 }
 public PostImageController(
     IPostImageRepository postImageRepository,
     IUnitOfWork unitOfWork,
     IMapper mapper,
     IHostingEnvironment hostingEnvironment)
 {
     this.postImageRepository = postImageRepository;
     this.unitOfWork          = unitOfWork;
     this.mapper             = mapper;
     this.hostingEnvironment = hostingEnvironment;
 }
Example #5
0
 public PostController(
     IPostRepository postRepository,
     IUnitOfWork unitOfWork,
     ILogger <PostController> logger,
     IMapper mapper,
     IUrlHelper urlHelper,
     ITypeHelperService typeHelperService,
     IPropertyMappingContainer propertyMappingContainer,
     IHostingEnvironment hostingEnvironment,
     IPostImageRepository postImageRepository
     )
 {
     _urlHelper                = urlHelper;
     _typeHelperService        = typeHelperService;
     _propertyMappingContainer = propertyMappingContainer;
     _mapper         = mapper;
     _logger         = logger;
     _unitOfWork     = unitOfWork;
     _postRepository = postRepository;
 }
Example #6
0
 public FileService(IUserRepository userRepository,
                    IUserPhotoRepository userPhotoRepository,
                    IUserContext userContext,
                    IWebHostEnvironment environment,
                    GlobalSettings settings,
                    IUserPhotoStorageService userImageStorageService,
                    IPostImageRepository postImageRepository,
                    IPostImageStorageService postImageStorageService,
                    IUnitOfWorks unitOfWorks,
                    IUserPhotoQueryRepository userPhotoQueryRepository)
 {
     _userRepository           = userRepository;
     _userPhotoRepository      = userPhotoRepository;
     _userContext              = userContext;
     _environment              = environment ?? throw new ArgumentNullException(nameof(environment));
     _settings                 = settings;
     _userPhotoStorageService  = userImageStorageService;
     _postImageRepository      = postImageRepository;
     _postImageStorageService  = postImageStorageService;
     _unitOfWorks              = unitOfWorks;
     _userPhotoQueryRepository = userPhotoQueryRepository;
 }
Example #7
0
 public PostImagesController(IPostRepository postRepository, IPostImageRepository postImageRepository, IFileUpload fileUpload)
 {
     _postRepository      = postRepository;
     _postImageRepository = postImageRepository;
     _fileUpload          = fileUpload;
 }
 public PostImageService(IPostImageRepository postImageRepository, IUnitOfWork unitOfWork)
 {
     this._postImageRepository = postImageRepository;
     this._unitOfWork          = unitOfWork;
 }