} //construtor para evitar forte acoplamento e baixa coesão

        public IEnumerable <Vinhos> Getvinhos()
        {
            return(repository.GetVinhos());
        }
Exemplo n.º 2
0
 public async Task <IEnumerable <Vinhos> > GetVinhosAsync()
 {
     return(repository.GetVinhos());
 }