public HttpResponseMessage GetapproverDetails(string travelRequestId) { HttpResponseMessage response = null; try { SubmitTravelRequest result = approvalService.GetapproverDetails(travelRequestId); response = Request.CreateResponse(HttpStatusCode.OK, result); } catch (Exception ex) { LogMessage.Log("GetapproverDetails :" + ex.Message); response = Request.CreateResponse(HttpStatusCode.InternalServerError, "Couldn't retrieve approver information " + ex.Message); } return(response); }