public ActionResult Headquarters() { IEnumerable <Article> ArticlesHQ = Directorates.getDirectorateNews("Army Capabilities Integration Center (Headquarters)").ToList(); ViewBag.Articles = ArticlesHQ.Take(3); ViewBag.DirName = "Headquarters"; return(View(ViewBag.Articles)); }
public ActionResult CDD() { IEnumerable <Article> Articles = Directorates.getDirectorateNews("Capabilities Development Directorate").ToList(); IEnumerable <Spotlight> Spotlights = Directorates.getDirectorateSpotlights("Capabilities Development").ToList(); ViewBag.Articles = Articles.Take(3); ViewBag.Spotlights = Spotlights.Take(3); ViewBag.DirName = "CDD"; return(View()); }
public ActionResult JMC() { IEnumerable <Article> ArticlesJMC = Directorates.getDirectorateNews("Joint Modernization Command Directorate").ToList(); IEnumerable <Article> ArticlesBMC = Directorates.getDirectorateNews("Brigade Modernization Command Directorate").ToList(); ViewBag.Articles = ArticlesJMC.Union(ArticlesBMC).Take(3); IEnumerable <Spotlight> SpotlightsJMC = Directorates.getDirectorateSpotlights("Joint Modernization Command").ToList(); IEnumerable <Spotlight> SpotlightsBMC = Directorates.getDirectorateSpotlights("Brigade Modernization Command").ToList(); //ViewBag.Articles = Articles.Take(3); ViewBag.Spotlights = SpotlightsJMC.Union(SpotlightsBMC).Take(3); ViewBag.DirName = "JMC"; return(View()); }