Пример #1
0
        public async Task <IEnumerable <LibroDto> > GetAll()
        {
            IEnumerable <LibroDto> lstCliente = null;

            using (SqlConnection con = new SqlConnection(CadenaConexion))
            {
                await con.OpenAsync();

                var result = await _libroRepository.GetAll(con);

                lstCliente = _mapper.Map <IEnumerable <LibroDto> >(result);
            }
            return(lstCliente);
        }
Пример #2
0
 public IQueryable <Libro> GetAll()
 {
     return(_libroRepository.GetAll());
 }