public HttpResponseMessage ValidateContractOverlaps(DoctorContractConsent parameter) { TransactionalInformation transaction = new TransactionalInformation(); var response = docDataService.ValidateContractOverlaps(parameter, connectionString, SessionToken, out transaction); if (transaction.ReturnStatus) { return(Request.CreateResponse(HttpStatusCode.OK, response)); } return(Request.CreateResponse(HttpStatusCode.BadRequest)); }