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()); }
public string SaveTicket(Ticket ticket, int userType) { TicketDAL ticketDal = new TicketDAL(); return(ticketDal.SaveTicket(ticket, userType)); }