// 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)); }
public ActionResult PromotionList() { IEnumerable <Promotion> promoList = db.getPromotions(); return(View(promoList.OrderByDescending(x => x.Promo_End))); }