Example #1
0
        public List <AccountAction> GetAccountActions(XmlDocument response)
        {
            var data = XmlConversion.ToXDocument(response);

            var accountActions = data.Descendants("actions1")
                                 .Elements()
                                 .Select(x => new AccountAction
            {
                Action     = x.Element("action") != null ? x.Element("action").Value : null,
                SendToLima = Convert.ToBoolean(x.Element("sendToLima").Value)
            })
                                 .ToList();

            return(accountActions);
        }