Пример #1
0
        public ActionResult Index()
        {
            var calendars = CronofyHelper.GetCalendars();
            var freeBusy  = CronofyHelper.GetFreeBusy();

            var model = freeBusy
                        .GroupBy(x => x.CalendarId)
                        .ToDictionary(x => calendars.First(cal => cal.CalendarId == x.Key), x => x.ToList());

            return(View("Index", model));
        }