Пример #1
0
        public List <VacationThumbnail> GetSpecificNumbersOfHotels(int numberOfHotels)
        {
            List <VacationThumbnail> randomVaca = new List <VacationThumbnail>();

            List <Zajezdy> test = DB.Zajezdy.OrderBy(r => Guid.NewGuid()).Take(numberOfHotels).ToList();

            foreach (Zajezdy zajezd in test)
            {
                var t = new VacationThumbnail()
                {
                };
                randomVaca.Add(t);
            }

            return(randomVaca);
        }
Пример #2
0
        public List <VacationThumbnail> GetThumbnails()
        {
            var v = new VacationThumbnail();

            return(v.GetDemo());
        }
Пример #3
0
        public ActionResult Find(VacationSearch vacation)
        {
            VacationThumbnail vt = new VacationThumbnail();

            return(View(vt.GetDemo()));
        }