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