Exemplo n.º 1
0
        public Historico Consulta(int id)
        {
            HistoricoRepositorio rep = new HistoricoRepositorio();

            return(rep.FindById(id));
        }
Exemplo n.º 2
0
        public List <Historico> Consulta()
        {
            HistoricoRepositorio rep = new HistoricoRepositorio();

            return(rep.FindAll());
        }
Exemplo n.º 3
0
        public void Altualizar(Historico h)
        {
            HistoricoRepositorio rep = new HistoricoRepositorio();

            rep.Update(h);
        }
Exemplo n.º 4
0
        public void Excluir(Historico h)
        {
            HistoricoRepositorio rep = new HistoricoRepositorio();

            rep.Delete(h);
        }
Exemplo n.º 5
0
        public void Cadastrar(Historico h)
        {
            HistoricoRepositorio rep = new HistoricoRepositorio();

            rep.Insert(h);
        }