public ActionResult Show(string id) { var calendar = CronofyHelper.GetCalendars().First(x => x.CalendarId == id); ViewData["events"] = CronofyHelper.ReadEventsForCalendar(id); return(View("Show", calendar)); }
public ActionResult Calendar(string userId, string calendarId) { ImpersonateUser(userId); var calendar = CronofyHelper.GetCalendars().First(x => x.CalendarId == calendarId); ViewData["userId"] = userId; ViewData["events"] = CronofyHelper.ReadEventsForCalendar(calendarId); return(View("Calendar", calendar)); }