Пример #1
0
        public ActionResult Search(string name)
        {
            List <HotelDetail> hoteldetail = hotelRepository.Get(name);

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

            return(repository.Get(id));
        }
Пример #3
0
 public Hotel GetHotel(ObjectId objectId)
 {
     return(hotelRepository.Get(objectId));
 }