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); }
public List <VacationThumbnail> GetThumbnails() { var v = new VacationThumbnail(); return(v.GetDemo()); }
public ActionResult Find(VacationSearch vacation) { VacationThumbnail vt = new VacationThumbnail(); return(View(vt.GetDemo())); }