public HttpResponseMessage PostTicket(string userId, TicketDetail ticketDetail)
        {
            if (ticketDetail != null)
            {
                var ticketId = this.ticketService.Insert(Convert.ToInt32(userId, CultureInfo.CurrentCulture), ticketDetail);
                return Request.CreateResponse(HttpStatusCode.OK, ticketId.Value);
            }

            return Request.CreateResponse(HttpStatusCode.BadRequest);
        }
        public HttpResponseMessage UpdateTicketDetail(string userId, TicketDetail ticket)
        {
            if (ticket != null)
            {
                this.ticketService.UpdateTicketDetail(Convert.ToInt32(userId, CultureInfo.CurrentCulture), ticket);
                return Request.CreateResponse(HttpStatusCode.OK);
            }

            return Request.CreateResponse(HttpStatusCode.BadRequest);
        }