public HttpResponseMessage SubmitTravelRequest(SubmitTravelRequestData submitTravelRequestData) { HttpResponseMessage response = null; try { var result = approvalService.SubmitTravelRequest(submitTravelRequestData); response = Request.CreateResponse(HttpStatusCode.OK, result); } catch (Exception ex) { LogMessage.Log("SubmitTravelRequest :" + ex.Message); response = Request.CreateResponse(HttpStatusCode.InternalServerError, "Travel request was not successfully submited. Please try again."); } return(response); }