public ActionResult Index() { groupVM = new GroupEventViewModel(); groupVM._event = repo.getAllUpcomingEvents(); groupVM._LatestVedio = mediaRepo.getAllVedios().FirstOrDefault(); groupVM._groups = groupRepo.GetAllgroups(); var ev = repo.getCountDownEvent(); groupVM._eventSingle = ev; ViewBag.Datestring = $"{@System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedMonthName(ev.StartDate.Value.Month)} {ev.StartDate.Value.Day}, {ev.StartDate.Value.Year} {ev.StartDate.Value.TimeOfDay}".Split(new char[] { '.' })[0]; return(View(groupVM)); }