public ActionResult <MedicoDTO> GetMedico(int id)
        {
            var medico = medicoService.Get(id);

            if (medico is null)
            {
                return(NotFound());
            }
            else
            {
                return(medico);
            }
        }
 public IActionResult Get(int id)
 {
     return(Json(
                _MedicoService.Get(id)
                ));
 }
 public ActionResult Get(int id)
 {
     return(Ok(
                medicoService.Get(id)
                ));
 }
Example #4
0
        public ActionResult <MedicoDTO> GetById(Guid id)
        {
            var medico = _medicoService.Get(id);

            return(Ok(medico));
        }