Exemplo n.º 1
0
        public ActionResult getReceipt(Ticket t)
        {
            var TicketDAL = new TicketDAL();

            int newTikcetID = TicketDAL.SaveTicket(t);

            if (newTikcetID != 0)
            {
                return(Json(new { id = newTikcetID, newurl = Url.Action("getReceipt") }));
            }
            return(View());
        }
Exemplo n.º 2
0
        public string SaveTicket(Ticket ticket, int userType)
        {
            TicketDAL ticketDal = new TicketDAL();

            return(ticketDal.SaveTicket(ticket, userType));
        }