public async Task <IHttpActionResult> Cancel(string userId, string ticketId) { IHttpActionResult result = null; var r = await _ticketRepository.CancelTicket(userId, ticketId); result = GetResult(r); return(result); }