public ActionResult Index() { if (Session["Username"] == null) { return(RedirectToAction("Index", "Login")); } ViewBag.TotalEvent = EventHelper.GetTotalEvent(); ViewBag.TotalComingEvent = EventHelper.GetTotalComingEvent(); ViewBag.TotalPastEvent = EventHelper.GetTotalPastEvent(); ViewBag.TotalParticipant = ParticipantHelper.GetTotalParticipant(); var listOfEvent = EventHelper.Get5ComingEvent(); return(View(listOfEvent)); }