public EOutDoctor ConsultarPorId(long id) { var resultAux = operacionesdb.OpeConsultarPorId(id); EOutDoctor result = resultAux != null?_mapper.Map <EOutDoctor>(resultAux) : null; return(result); }
public ERespuestaDoctor ConsultarPorId(long id) { ERespuestaDoctor result = new ERespuestaDoctor(); EOutDoctor aux = repositorioDoctor.ConsultarPorId(id); if (aux != null) { result.Doctores.Add(aux); } return(ValidarRespuesta(result)); }