public ActionResult CreateTicket(int table_id, int user_id) { Ticket newTicket = new Ticket(Ticket.GenerateTicketNumber()); newTicket.Save(); newTicket.AddUser(Models.User.Find(user_id)); newTicket.AddTable(table_id); return(RedirectToAction("Index", "Mockup", new { id = user_id })); }
public ActionResult CreateTicket(int table_id, int user_id) { Ticket newTicket = new Ticket(Ticket.GenerateTicketNumber()); newTicket.Save(); newTicket.AddUser(Models.User.Find(user_id)); newTicket.AddTable(table_id); return(PartialView("Ticket", newTicket)); }