private Release CreateRelease(XElement element)
{
return new Release(this)
{
Id = int.Parse(element.Attribute("id").Value),
Name = element.Attribute("name").Value,
PressRelease = bool.Parse(element.Attribute("press_release").Value),
Link =
element.Attribute("link") != null
? element.Attribute("link").Value
: Empty,
Notes =
element.Attribute("notes") != null
? element.Attribute("notes").Value
: Empty,
RealtimeStart = element.Attribute("realtime_start").Value.ToFredDate(),
RealtimeEnd = element.Attribute("realtime_end").Value.ToFredDate()
};
}