public void Apply(CalendarItemCreated @event) { Events.Add(@event); }
public void Apply(CalendarItemCreated @event) { service.Events.Insert(new Event { ICalUID = @event.Item.Id, Summary = @event.Item.Title, Description = @event.Item.Note, Location = @event.Item.Location, Start = ToGoogleEventDateTime(@event.Item.Start, @event.Item.IsAllDay), End = ToGoogleEventDateTime(@event.Item.End, @event.Item.IsAllDay) }, calendarId).Execute(); }