public ActionResult Search(string name)
        {
            List <HotelDetail> hoteldetail = hotelRepository.Get(name);

            if (name == null)
            {
                return(HttpNotFound());
            }
            return(View(hoteldetail));
        }
Beispiel #2
0
        public HotelsViewModel Get(int id)
        {
            HotelRepository repository = new HotelRepository();

            return(repository.Get(id));
        }
Beispiel #3
0
 public Hotel GetHotel(ObjectId objectId)
 {
     return(hotelRepository.Get(objectId));
 }