Ejemplo n.º 1
0
        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 }));
        }
Ejemplo n.º 2
0
        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));
        }