예제 #1
0
        public ActionResult About()
        {
            List <Ad> bestAds = new List <Ad>();

            ViewBag.Message1 = "The best ad based on score 1";
            ViewBag.Message2 = "The best ad based on score 2";
            bestAds.Add(adHandler.maxScore1());
            bestAds.Add(adHandler.maxScore2());
            bestAds.Add(adHandler.maxAd());

            return(View(bestAds));
        }