public PhotosController(IHostingEnvironment host, IRealEstateRepository realEstateRepository, IPhotoRepository photoRepository, IMapper mapper, IOptionsSnapshot <PhotoSettings> options, IPhotoService photoService)
 {
     this.photoService         = photoService;
     this.photoSettings        = options.Value;
     this.mapper               = mapper;
     this.realEstateRepository = realEstateRepository;
     this.photoRepository      = photoRepository;
     this.host = host;
 }
        public MainWindow()
        {
            InitializeComponent();
            var container = new Container(_ =>
            {
                _.Scan(x =>
                {
                    x.TheCallingAssembly();
                    x.WithDefaultConventions();
                });
                _.For <IRealEstateRepository>().Use <RealEstateRepository>();
            });

            realEstateRepository = container.GetInstance <IRealEstateRepository>();
        }
Пример #3
0
        public UserPhotoController(IRealEstateRepository repo, IMapper mapper,
                                   IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _mapper           = mapper;
            _repo             = repo;

            Account acc = new Account(
                _cloudinaryConfig.Value.CloudName,
                _cloudinaryConfig.Value.ApiKey,
                _cloudinaryConfig.Value.ApiSecret
                );

            _cloudinary = new Cloudinary(acc);
        }
Пример #4
0
 public RealEstateService(IPersistenceContext persistenceContext, IServiceLocator serviceLocator)
 {
     PersistenceContext = persistenceContext;
     ServiceLocator     = serviceLocator;
     Repository         = ServiceLocator.GetInstance <IRealEstateRepository>();
 }
Пример #5
0
 public UsersController(IRealEstateRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
Пример #6
0
 public HousesController(IRealEstateRepository repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
Пример #7
0
 public HousesController(IRealEstateRepository repository, ILogger<HousesController> logger, CoordService coordService)
 {
     _repository = repository;
     _logger = logger;
     _coordService = coordService;
 }
Пример #8
0
 public RealEstateService(IRealEstateRepository realEstateRepository)
 {
     _realEstateRepository = realEstateRepository;
 }
Пример #9
0
 public RealEstateService(IRealEstateRepository realEstateRepository, UserManager <User> userManager)
 {
     _realEstateRepository = realEstateRepository;
     _userManager          = userManager;
 }
Пример #10
0
 public ImagesController(IRealEstateRepository repository, ILogger<HousesController> logger)
 {
     _repository = repository;
     _logger = logger;
 }
 public RealEstatesController(IMapper mapper, IRealEstateRepository realEstateRepository, IUnitOfWork unitOfWork)
 {
     this.unitOfWork = unitOfWork;
     this.repository = realEstateRepository;
     this.mapper     = mapper;
 }
Пример #12
0
 public HomeController(IRealEstateRepository realEstateRepository)
 {
     _realEstateRepository = realEstateRepository;
 }
 public RealEstateController(IDepartmentRepository departmentRepository, ICategoryRepository categoryRepository, IRealEstateRepository realEstateRepository)
 {
     _departmentRepository = departmentRepository;
     _categoryRepository   = categoryRepository;
     _realEstateRepository = realEstateRepository;
 }
Пример #14
0
 public AppController(Services.IMailService service, IRealEstateRepository dbContext)
 {
     _mailService = service;
     _repository = dbContext;
 }
 public ShoppingCartController(IRealEstateRepository realEstateRepository, ShoppingCart shoppingCart)
 {
     _realEstateRepository = realEstateRepository;
     _shoppingCart         = shoppingCart;
 }