コード例 #1
0
        // GET: Passes

        //View hardcoded
        public ActionResult OnlineStore()
        {
            //String message = Util.EmailSender.sendEmail();
            //Response.Write(message);

            IEnumerable <Promotion> promoList = db.getPromotions();

            ViewBag.PromoList = promoList;


            IEnumerable <Class_Passes> class_Pass_List = db.getClassPasses();

            return(View(class_Pass_List));
        }
コード例 #2
0
        public ActionResult PromotionList()
        {
            IEnumerable <Promotion> promoList = db.getPromotions();

            return(View(promoList.OrderByDescending(x => x.Promo_End)));
        }