コード例 #1
0
        public HttpResponseMessage CheckLanr(DoctorModel doctor)
        {
            var transaction = new TransactionalInformation();
            var exists      = docDataService.CheckLanr(doctor.DoctorID, doctor.PracticeID, doctor.LANR, connectionString, SessionToken, out transaction);

            if (transaction.ReturnStatus)
            {
                if (exists)
                {
                    return(Request.CreateResponse(HttpStatusCode.NotAcceptable));
                }

                return(Request.CreateResponse(HttpStatusCode.OK));
            }

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