public HttpResponseMessage GetPracticeDetails([FromUri] Guid ID) { TransactionalInformation transaction = new TransactionalInformation(); PracticeDetailApiModel practiceApiModel = new PracticeDetailApiModel(); PracticeDetails practice_detail = docDataService.GetPracticeDetails(ID, connectionString, SessionToken, out transaction); practiceApiModel.practice = practice_detail; if (transaction.ReturnStatus) { return(Request.CreateResponse <PracticeDetailApiModel>(HttpStatusCode.OK, practiceApiModel)); } return(Request.CreateResponse(HttpStatusCode.BadRequest, transaction)); }