public ActionResult AdButtons() { var datePDF = EventModel.Archives("PDF")[0]; DateTime dateChkPDF = Convert.ToDateTime(datePDF.entDate); var dateDSS = EventModel.Archives("DSS")[0]; DateTime dateChkDSS = Convert.ToDateTime(dateDSS.entDate); var dateOPD = EventModel.Archives("OPD")[0]; DateTime dateChkOPD = Convert.ToDateTime(dateOPD.entDate); var hotLinks = HotLinks.GetHotLinks(); int currReading = Globals.currLPD; ViewBag.trackingLabel = dateOPD.eventTitle; ViewBag.hotLinks = hotLinks; ViewBag.currReading = currReading; ViewBag.dateOPD = dateChkOPD; ViewBag.datePDF = dateChkPDF; ViewBag.dateDSS = dateChkDSS; return(View()); }
public ActionResult Index() { var articles = Article.GetArticles().ToList(); var readings = Reading.GetReadings().ToList(); ViewBag.articles = articles.Where(x => x.dataSet == "exclusive").ToList(); ViewBag.readings = readings.ToList(); ViewBag.slides = articles.Where(x => x.pType == "slider"); ViewBag.hotLinks = HotLinks.GetHotLinks().ToList(); return(View()); }