Esempio n. 1
0
        public EOutDoctor ConsultarPorId(long id)
        {
            var        resultAux = operacionesdb.OpeConsultarPorId(id);
            EOutDoctor result    = resultAux != null?_mapper.Map <EOutDoctor>(resultAux) : null;

            return(result);
        }
Esempio n. 2
0
        public ERespuestaDoctor ConsultarPorId(long id)
        {
            ERespuestaDoctor result = new ERespuestaDoctor();
            EOutDoctor       aux    = repositorioDoctor.ConsultarPorId(id);

            if (aux != null)
            {
                result.Doctores.Add(aux);
            }

            return(ValidarRespuesta(result));
        }