Exemplo n.º 1
0
 public IEnumerable <Cliente> Get()
 {
     using (var dbCliente = new ClienteRep())
     {
         return(dbCliente.GetAll().ToList());
     }
 }
Exemplo n.º 2
0
        public async Task <List <Cliente> > GetAll()
        {
            List <Cliente> lista = _repositorio.GetAll();

            return(lista);
        }