Beispiel #1
0
        public ActionResult EventDetails(int id)
        {
            var mediator = new TicketMediator();
            var model    = mediator.GetEvent(id);

            //model.Performances = new List<PerformanceVM>();
            //model.Performances = mediator.GetPerformances(id);
            return(View(model));
        }
Beispiel #2
0
        public ActionResult EditEvent(int id)
        {
            var mediator = new TicketMediator();
            var model    = mediator.GetEvent(id);

            model.Categories = mediator.GetEventTypes();

            ViewBag.PageTitle = "Edit Event";
            return(View("~/Views/Admin/EventForm.cshtml", model));
        }
Beispiel #3
0
        public ActionResult PerformanceList(int id)
        {
            var mediator = new TicketMediator();
            var model    = mediator.GetEvent(id);

            model.Performances = new List <PerformanceVM>();
            model.Performances = mediator.GetPerformances(id).OrderBy(d => d.PerformanceDate).ToList();

            return(View("~/Views/Admin/PerformanceList.cshtml", model));
        }