public ActionResult F2025B() { IEnumerable <Article> Articles = Article.GetArticles().Where(x => x.pDirectorate == "Force 2025 and Beyond Directorate").OrderByDescending(x => x.entDate).ToList(); IEnumerable <Spotlight> Spotlights = Spotlight.GetSpotlights().Where(x => x.mainArea == "Force 2025 and Beyond").OrderByDescending(x => x.imageDate); ViewBag.Articles = Articles.Take(3); ViewBag.Spotlights = Spotlights.Take(3); ViewBag.DirName = "F2025B"; return(RedirectToAction("PLANSANDOPERATIONS")); }
public ActionResult CDLD() { IEnumerable <Article> Articles = Article.GetArticles().Where(x => x.pDirectorate == "Concept Development and Learning Directorate").OrderByDescending(x => x.entDate).ToList(); IEnumerable <Spotlight> Spotlights = Spotlight.GetSpotlights().Where(x => x.mainArea == "Concept Development and Learning").OrderByDescending(x => x.imageDate); ViewBag.Articles = Articles.Take(3); ViewBag.Spotlights = Spotlights.Take(3); ViewBag.DirName = "CDLD"; return(View()); }
public ActionResult IAPD() { IEnumerable <Article> Articles = Article.GetArticles().Where(x => x.pDirectorate == "International Army Programs Directorate").OrderByDescending(x => x.entDate).ToList(); IEnumerable <Spotlight> Spotlights = Spotlight.GetSpotlights().Where(x => x.mainArea == "International Army Programs").OrderByDescending(x => x.imageDate); //ViewBag.Articles = Articles.Take(3); ViewBag.Spotlights = Spotlights.Take(3); ViewBag.DirName = "IAPD"; return(View()); }
// GET: / Spotlight / Full Archives public ActionResult Archives() { ViewBag.DataArchives = Spotlight.GetSpotlights(); ViewBag.currSpot = Spotlight.CurrSpotlight(currSpotlight); return(View()); }
// // GET: / Spotlight / Partial Archives public ActionResult Index(int slideOrder) { ViewBag.Archives = Spotlight.GetSpotlights(); ViewBag.CurrSpot = Spotlight.CurrSpotlight(slideOrder); return(View()); }