public ActionResult <CitaDTO> GetCita(int id) { var cita = citaService.Get(id); if (cita is null) { return(NotFound()); } else { return(cita); } }
public ActionResult Get(int id) { return(Ok( _CitaService.Get(id) )); }
public IActionResult Get(int id) { return(Json( _CitaService.Get(id) )); }