public HttpResponseMessage GetDoctorInformation() { var transaction = new TransactionalInformation(); var response = doctorService.GetDoctorInformation(connectionString, SessionToken, out transaction); if (transaction.ReturnStatus) { return(Request.CreateResponse(HttpStatusCode.OK, response)); } return(Request.CreateResponse(HttpStatusCode.InternalServerError, transaction)); }