public ActionResult Edit([Bind(Include = "Id,Name")] TicketType ticketType)
 {
     if (ModelState.IsValid)
     {
         TicketTypeHelper.Edit(ticketType.Id, ticketType.Name);
         return(RedirectToAction("Index"));
     }
     return(View(ticketType));
 }
        // GET: TicketTypes/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TicketType ticketType = TicketTypeHelper.GetTicketType(id);

            if (ticketType == null)
            {
                return(HttpNotFound());
            }
            return(View(ticketType));
        }
 // GET: TicketTypes
 public ActionResult Index()
 {
     return(View(TicketTypeHelper.GetTicketTypes()));
 }
 public ActionResult DeleteConfirmed(int id)
 {
     TicketTypeHelper.Delete(id);
     return(RedirectToAction("Index"));
 }