Exemple #1
0
        public HttpResponseMessage SubmitReimburse(SubmitReimburseData submitReimburseData)
        {
            HttpResponseMessage response = null;

            try
            {
                var result = approvalService.SubmitReimburse(submitReimburseData);
                response = Request.CreateResponse(HttpStatusCode.OK, result);
            }
            catch (Exception ex)
            {
                LogMessage.Log("SubmitReimburse :" + ex.Message);
                response = Request.CreateResponse(HttpStatusCode.InternalServerError, "Travel request was not successfully submited. Please try again.");
            }

            return(response);
        }