public List<HotelsInfo> GetHotelsInfo(HotelsInfo info) { var hotelsinfoList = new List<HotelsInfo>(); hotelsinfoList.Add(new HotelsInfo { OriginUrl = "http://www.hotelOne/", HotelsName = "晶華誠", Address = "台北市大同區", NotCheckIn = "Y", Quantity = "1", GuestsRooms = "二房", Star = 1, Price = 1000, PropertyType = "酒店", GuestRating = 9 }); hotelsinfoList.Add(new HotelsInfo { OriginUrl = "http://www.hotelOne/", HotelsName = "花蓮美倫大飯店", Address = "花蓮縣", NotCheckIn = "Y", Quantity = "1", GuestsRooms = "二房", Star = 1, Price = 1000, PropertyType = "酒店", GuestRating = 9 }); return hotelsinfoList; }
public List<HotelsInfo> GetHotelsInfo(HotelsInfo info) { var hotelsinfoList = new List<HotelsInfo>(); hotelsinfoList.Add(new HotelsInfo { OriginUrl = "http://www.hotelTwo/", HotelsName = "台中雲品飯店", Address = "台中市大同區", NotCheckIn = "Y", Quantity = "1", GuestsRooms = "二大", Star = 1, Price = 1000, PropertyType = "飯店", GuestRating = 9 }); hotelsinfoList.Add(new HotelsInfo { OriginUrl = "http://www.hotelTwo/", HotelsName = "台南星光大旅社", Address = "台南市", NotCheckIn = "Y", Quantity = "1", GuestsRooms = "二大一小", Star = 1, Price = 1000, PropertyType = "旅社", GuestRating = 9 }); return hotelsinfoList; }
public List<HotelsInfo> GetHotelsInfo(HotelsInfo info) { var hotelsInfoList = new List<HotelsInfo>(); var hotelsInfoList1 = ez1.GetHotelsInfo(info); var hotelsInfoList2 = ez2.GetHotelsInfo(info); hotelsInfoList.AddRange(hotelsInfoList1); hotelsInfoList.AddRange(hotelsInfoList2); if (!string.IsNullOrEmpty(info.Address) && info.Address.Length > 0) { hotelsInfoList = hotelsInfoList.Where(a => a.Address.Contains(info.Address)).ToList(); } if (!string.IsNullOrEmpty(info.GuestsRooms)) { hotelsInfoList = hotelsInfoList.Where(a => a.GuestsRooms.Contains(info.GuestsRooms)).ToList(); } return hotelsInfoList; }
public string GetHotelRoomsUrl(HotelsInfo info) { return info.OriginUrl; }
public string GetHotelRoomsUrl(HotelsInfo info) { throw new NotImplementedException(); }
public ActionResult GetHotels(HotelsInfo info) { var control = new EZTraveInControl(); var list = control.GetHotelsInfo(info); return View(list); }
public List<HotelsInfo> GetHotelsInfo(HotelsInfo info) { return proxy.GetHotelsInfo(info); }