public Response <List <BANCO> > GetAll() { Response <List <BANCO> > response = new Response <List <BANCO> >(); try { response.Value = bancoRepository.GetAll(); return(response); } catch (Exception e) { return(response.Error(e.Message)); } }
public IEnumerable<Banco> GetAll() { BancoRepository bancoRepo = new BancoRepository(); return bancoRepo.GetAll(); }