public static List<BoardGameLink> GetExpansionsLinks(this XElement Boardgame)
{
var links = from p in Boardgame.Elements("link")
where p.Attribute("type").Value == "boardgameexpansion" &&
(p.Attribute("inbound") == null || p.Attribute("inbound").Value != "true")
select new BoardGameLink
{
Name = p.GetStringValue("value"),
Id = p.GetIntValue("id", -1).Value
};
return links.ToList();
}