public HttpResponseMessage CanChangeHIP([FromUri] Guid patientID) { var transaction = new TransactionalInformation(); var response = patientDataService.CanChangeHIP(patientID, connectionString, SessionToken, out transaction); if (transaction.ReturnStatus) { return(Request.CreateResponse(HttpStatusCode.OK, response)); } return(Request.CreateResponse(HttpStatusCode.InternalServerError, transaction)); }