예제 #1
0
        public HttpResponseMessage Get_PatientDataWithInitalData([FromUri] Guid patientID)
        {
            var transaction = new TransactionalInformation();
            var data        = new InitalPatientDataApiModel();

            if (transaction.ReturnStatus)
            {
                var dataList = patientDataService.Get_PatientDataWithInitalData(patientID, connectionString, SessionToken, out transaction);
                data.InitalPatientData = dataList;
                if (transaction.ReturnStatus)
                {
                    return(Request.CreateResponse <InitalPatientDataModel>(HttpStatusCode.OK, data.InitalPatientData));
                }
            }

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