示例#1
0
        public ActionResult SingleTicket(int id)
        {
            var gateway = BLLGatewayFactory.CreateOrGet();
            var model   = gateway.GetEvent(id);

            return(View(model));
        }
示例#2
0
        public ActionResult pdfTest(int id)
        {
            var          gateway = BLLGatewayFactory.CreateOrGet();
            var          model   = gateway.GetEvent(id);
            PDFGenerator p       = new PDFGenerator();

            p.formatePDF(model);
            ViewBag.Message = "Your application description page.";
            return(View());
        }
示例#3
0
        public ActionResult Index()
        {
            var gateway = BLLGatewayFactory.CreateOrGet();
            var model   = new EventListModel()
            {
                Events = gateway.GetFutureEvents()
            };

            return(View(model));
        }