示例#1
0
        public IActionResult Put(Patient p, string enterpriseId)
        {
            Logger.LogInformation("Put():" + enterpriseId);

            PatientRepo pr = new PatientRepo(_pc, Logger);

            bool isDup = false;

            if (pr.updatePatient(p, enterpriseId, ref isDup))
            {
                return(Ok());
            }

            if (isDup)
            {
                return(UnprocessableEntity("duplicate PatientMemberRecord composite key"));
            }

            return(NotFound());
        }