private static string GenerateCalendarEvent(Event winnerEvent)
{
var calendarData = new StringWriter();
calendarData.WriteLine("BEGIN:VCALENDAR");
calendarData.WriteLine("VERSION:2.0");
calendarData.WriteLine("PRODID:-//hacksw/handcal//NONSGML v1.0//EN");
calendarData.WriteLine("BEGIN:VEVENT");
calendarData.WriteLine("DTSTAMP:{0}", ToCalendarDateString(winnerEvent.Created.ToUniversalTime()));
calendarData.WriteLine("ORGANIZER:mailto:{0}", winnerEvent.Creator);
calendarData.WriteLine("DTSTART:{0}", ToCalendarDateString(winnerEvent.StartTime.ToUniversalTime()));
calendarData.WriteLine("SUMMARY:{0}", winnerEvent.Name);
calendarData.WriteLine("END:VEVENT");
calendarData.WriteLine("END:VCALENDAR");
return calendarData.ToString();
}