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 }); }
public ActionResult New(NewTicketPostModel model = null) { if (model == null) model = new NewTicketPostModel(); return View(model); }