// GET: api/EventAPI public IEnumerable <EventInfo> Get(bool past = false) { if (past) { return(_em.GetLatestEventsWithVideos(5)); } else { return(_em.GetUpcomingEvents(5)); } }
public ActionResult RecentVideos() { return(View(_em.GetLatestEventsWithVideos(5))); }