Exemplo n.º 1
0
        public HttpResponseMessage GetContractsWhereHIPisParticipating([FromUri] string ik_number)
        {
            var transaction = new TransactionalInformation();

            var response = patientDataService.GetContractsWhereHIPisParticipating(ik_number, connectionString, SessionToken, out transaction);

            if (transaction.ReturnStatus)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, response));
            }

            return(Request.CreateResponse <TransactionalInformation>(HttpStatusCode.InternalServerError, transaction));
        }