public ActionResult Index() { etblPropertyAmenitiesMap obj = new etblPropertyAmenitiesMap(); try { int id = Convert.ToInt32(Session["PropId"]); obj = BL_tblPropertyAmenitiesMap.GetSingleRecordById(id); obj.iPropId = id; obj.CommonServicesItems = BL_tblHotelCommonServiceM.GetPropertyCommonServices(obj.sHotelCommonServices); obj.ConveniencesItems = BL_tblHotelConvenienceM.GetPropertyConveniences(obj.sHotelConvenience); obj.LeisureItems = BL_tblHotelLeisureM.GetPropertyLeisure(obj.sHotelLeisure); obj.MeetingsItems = BL_tblHotelMeetingM.GetPropertyMeetings(obj.sHotelMeetings); obj.HotelAmenities = BL_tblHotelAmenityM.GetHotelAmenities(); obj.HotelParkingsRadio = BL_tblHotelParkingM.GetHotelParkingsRadio(); obj.HotelParkingsItems = BL_tblHotelParkingM.GetHotelParkingsCheckBox(obj.sHotelParkings); //obj.bAirportTransferAvalible = true; //List<etblPropertyParkingMap> results = BL_tblPropertyAmenitiesMap.GetPropertyParkingList(id); //obj.JsonParkingMapData = OneFineRateAppUtil.clsUtils.ConvertToJson(results); } catch (Exception) { } return(View(obj)); }
public ActionResult AddPartial() { etblPropertyAmenitiesMap obj = new etblPropertyAmenitiesMap(); int id = Convert.ToInt32(Session["PropId"]); obj = BL_tblPropertyAmenitiesMap.GetSingleRecordById(id); obj.iPropId = id; List <etblPropertyParkingMap> results = BL_tblPropertyAmenitiesMap.GetPropertyParkingList(id); obj.JsonParkingMapData = OneFineRateAppUtil.clsUtils.ConvertToJson(results); return(PartialView("PropertyParking", obj)); }