public GiataHotel updateHotelDetails(GiataHotel givenHotel) { GiataHotel returnedHotel = givenHotel; return(returnedHotel); }
private List <GiataHotel> extractGiataHotels(XmlDocument GiataResponse) { List <GiataHotel> AllGiataHotels = new List <GiataHotel>(); XmlNodeList MyNodes = GiataResponse.SelectNodes("//item"); foreach (XmlNode childNode in MyNodes) { string GiataID = childNode.Attributes["giataId"].Value; string lastUpdate = childNode.Attributes["lastUpdate"].Value; string reference = childNode.Attributes["xlink:href"].Value; GiataHotel newGiataHotel = new GiataHotel(GiataID, lastUpdate, reference); AllGiataHotels.Add(newGiataHotel); } return(AllGiataHotels); }