public ActionResult GetHotels(ClsReminder objReminder) { objReminder.ListHotels = new List <ClsHotels>(); objReminder.ListHotels = ClsReminder.GetHotels(objReminder.Location); return(View("Hotels", objReminder)); }
// Search and fetch list of hotels basis city sent as query parameter public ActionResult Hotels(string sTrvlDestination) { Session["AccessToken"] = null; ClsReminder objReminder = new ClsReminder(); objReminder.ListHotels = new List <ClsHotels>(); if (sTrvlDestination != null && sTrvlDestination != "") { objReminder.Location = sTrvlDestination; objReminder.ListHotels = ClsReminder.GetHotels(sTrvlDestination); } return(View(objReminder)); }