예제 #1
0
        public void ExcluirResp(int responsavel_id)
        {
            RepResponsavel rep = new RepResponsavel();

            if (rep.FindById(responsavel_id) != null)
            {
                rep.Delete(responsavel_id);
            }
        }
예제 #2
0
        public void AtualizarResp(Responsavel r)
        {
            RepResponsavel rep = new RepResponsavel();

            if (rep.FindById(r.IdResponsavel) != null)
            {
                rep.UpdateAll(r);
            }
        }
예제 #3
0
        public List <Responsavel> BuscarTodosResp()
        {
            RepResponsavel rep = new RepResponsavel();

            return(rep.FindAll());
        }
예제 #4
0
        public List <Responsavel> ConsultarResponsavel(int sistema_id)
        {
            RepResponsavel rep = new RepResponsavel();

            return(rep.FindBySist(sistema_id));
        }
예제 #5
0
        //Responsável
        #region Responsável
        public void InserirResp(Responsavel r)
        {
            RepResponsavel rep = new RepResponsavel();

            rep.Insert(r);
        }