Exemplo n.º 1
0
        public HttpResponseMessage GetDoctorDetails([FromUri] Guid ID)
        {
            TransactionalInformation transaction   = new TransactionalInformation();
            DoctorDetailApiModel     doctoApiModel = new DoctorDetailApiModel();
            DoctorDetail             doctor_detail = docDataService.GetDoctorDetails(ID, connectionString, SessionToken, out transaction);

            doctoApiModel.doctor = doctor_detail;

            if (transaction.ReturnStatus)
            {
                return(Request.CreateResponse <DoctorDetailApiModel>(HttpStatusCode.OK, doctoApiModel));
            }

            return(Request.CreateResponse(HttpStatusCode.BadRequest, transaction));
        }