public ActionResult <HistoriaClinicaPsicologica> getHistoriaClinica(int id) { logger.LogInformation("Searhing historia clinica psicologica with id = {0} by user {1}", id, getUser()); var psicologica = fundabiem.getHistoriaClinicaPsicologicaById(id); if (psicologica.Result == null) { return(NotFound("No se encontro la historia clinica Psicologica con id = " + id)); } return(Ok(psicologica.Result)); }