예제 #1
0
 public ActionResult Create(NewTicketPostModel model)
 {
     var obj = Repo.GetByFieldName<Event>("Slug", model.EventSlug);
     var child = obj.AddTicket(model.Name,model.Price);
     Repo.Save(child);
     return RedirectToAction("Edit", new { id = child.ID });
 }
예제 #2
0
 public ActionResult New(NewTicketPostModel model = null)
 {
     if (model == null) model = new NewTicketPostModel();
     return View(model);
 }