コード例 #1
0
        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"));
        }
コード例 #2
0
        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());
        }
コード例 #3
0
        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());
        }
コード例 #4
0
 // GET: / Spotlight / Full Archives
 public ActionResult Archives()
 {
     ViewBag.DataArchives = Spotlight.GetSpotlights();
     ViewBag.currSpot     = Spotlight.CurrSpotlight(currSpotlight);
     return(View());
 }
コード例 #5
0
        //
        // GET: / Spotlight / Partial Archives

        public ActionResult Index(int slideOrder)
        {
            ViewBag.Archives = Spotlight.GetSpotlights();
            ViewBag.CurrSpot = Spotlight.CurrSpotlight(slideOrder);
            return(View());
        }