예제 #1
0
 public JsonResult GetHotelData(string Searchkey)
 {
     try
     {
         return(Json(new Common().DatasetToJson(StaticCache.GetHotels()), JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         string rslt = "Not Found";
         ExceptionHandling.WriteException(ex);
         return(Json(rslt, JsonRequestBehavior.AllowGet));
     }
 }