public ActionResult Search(string name) { List <HotelDetail> hoteldetail = hotelRepository.Get(name); if (name == null) { return(HttpNotFound()); } return(View(hoteldetail)); }
public HotelsViewModel Get(int id) { HotelRepository repository = new HotelRepository(); return(repository.Get(id)); }
public Hotel GetHotel(ObjectId objectId) { return(hotelRepository.Get(objectId)); }