Beispiel #1
0
        public IActionResult GetDoctor(int id)
        {
            Doctor doctor = context.Find <Doctor>(id);

            if (doctor == null)
            {
                return(this.NotFound("No such doctor"));
            }
            else
            {
                return(this.Ok(doctor));
            }
        }