public ContentResult Mixed() { // var helper = new var helper = new ICalHelper(); var events = helper.GetFromFeed("https://www.google.com/calendar/ical/[email protected]/public/basic.ics"); var data = new SchedulerAjaxData(Repository.Events); //data.FromUrl("https://www.google.com/calendar/ical/[email protected]/public/basic.ics"); data.Add(events.Select(o => new Event() { end_date = o.end_date, id = Convert.ToInt32(o.id), start_date = o.start_date, room_id = null, text = o.text, user_id = null })); return(data); }
public void ExportToGoogleCalendar(string url, string ics) { List <SchedulerEvent> schedulerEventList = new ICalHelper().Parse(ics); this.ExportToGoogleCalendar(url, (IEnumerable)schedulerEventList); }