public List<TravelSitesInfo> GetHotelsInfo(TravelSitesInfo info) { var hotelsInfoList = new List<TravelSitesInfo>(); var hotelsInfoList1 = hc1.GetHotelsInfo(); var hotelsInfoList2 = hc2.GetHotelsInfo(); hotelsInfoList.AddRange(InfoChangeOne(hotelsInfoList1)); hotelsInfoList.AddRange(InfoChangeTwo(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 List<TravelSitesInfo> GetHotelsInfo(TravelSitesInfo info) { return adapter.GetHotelsInfo(info); }
public ActionResult GetHotels(TravelSitesInfo info) { var control = new HotelsCombinedControl(); var list = control.GetHotelsInfo(info); return View(list); }
public string GetHotelRoomsUrl(TravelSitesInfo info) { return info.OriginUrl; }