public FindTourViewModel()
        {
            TourAims = Mapper.Map <ObservableCollection <TourAimViewModel> >(TourAimsService.GetAll());
            Organs   = Mapper.Map <ObservableCollection <DiseaseViewModel> >(DiseasesService.GetAll());

            IsDateImportant     = true;
            IsDistanceImportant = true;

            StartDate = DateTime.Now.AddMonths(1);
            EndDate   = DateTime.Now.AddMonths(1).AddDays(7);
        }
Ejemplo n.º 2
0
 public ResortsFilterViewModel()
 {
     MinRating     = 0;
     MaxRating     = 5;
     RatingOptions = new ObservableCollection <int>();
     for (int i = 0; i <= MaxRating; i++)
     {
         RatingOptions.Add(i);
     }
     Season   = SeasonEnum.Summer;
     Diseases = Mapper.Map <ObservableCollection <DiseaseViewModel> >(DiseasesService.GetAll());
 }