public static List<GameCategory> GetCategories(this XElement boardgame)
{
return (from p in boardgame.Elements("link")
where p.Attribute("type").Value == "boardgamecategory"
select new GameCategory
{
Category = p.Attribute("value").Value,
Id = int.Parse(p.Attribute("id").Value)
}).ToList();
}