public object search(Ticket ticks) { //var busInfoPost = db.proc_Bus(journeyinfo.FromLocation, journeyinfo.ToLocation, journeyinfo.FromDate); var ticketInfo = db.proc_addTicketDetail(ticks.BusID, ticks.BookingUserID, ticks.FromLocation, ticks.ToLocation, ticks.FromDate, ticks.ToDate, ticks.FromTime, ticks.ToTime, ticks.NumberOfSeats, ticks.Fare); return(ticketInfo); }