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()));
        }