示例#1
0
 private void UpdateSelectedEstate()
 {
     estateRepository = new EstateRepository();
     estateSense.Items.Clear();
     foreach (Estate estate in estateRepository.GetAll())
     {
         estateSense.Items.Add(estate);
     }
 }
示例#2
0
 private void SortSaled_Selected(object sender, RoutedEventArgs e)
 {
     estateRepository = new EstateRepository();
     estateSense.Items.Clear();
     foreach (Estate estate in estateRepository.GetAll())
     {
         if (estate.EstateState.Trim() == "Продан")
         {
             estateSense.Items.Add(estate);
         }
     }
 }
示例#3
0
        public PhotosControllers(IDatingRepository repo, IEstatesRepository estateRepo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _repo             = repo;
            _estateRepo       = estateRepo;
            _mapper           = mapper;

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

            _cloudinary = new Cloudinary(acc);
        }
示例#4
0
 public EstatesController(IEstatesRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }