protected BankBillet DeserializeSingleBankBillet(IRestServiceResult response) { var billets = DeserializeBankBillets(response); return billets.FirstOrDefault(); }
protected List<BankBillet> DeserializeBankBillets(IRestServiceResult response) { var xmlDoc = new XmlDocument(); xmlDoc.LoadXml(response.Content); var nodes = xmlDoc.SelectNodes("//bank-billet"); var billets = new List<BankBillet>(); foreach (XmlNode node in nodes) { var billet = XmlSerializer.DeserializeXmlNodeToObject<BankBillet>(node); billets.Add(billet); } return billets; }