public void ExcluirResp(int responsavel_id) { RepResponsavel rep = new RepResponsavel(); if (rep.FindById(responsavel_id) != null) { rep.Delete(responsavel_id); } }
public void AtualizarResp(Responsavel r) { RepResponsavel rep = new RepResponsavel(); if (rep.FindById(r.IdResponsavel) != null) { rep.UpdateAll(r); } }
public List <Responsavel> BuscarTodosResp() { RepResponsavel rep = new RepResponsavel(); return(rep.FindAll()); }
public List <Responsavel> ConsultarResponsavel(int sistema_id) { RepResponsavel rep = new RepResponsavel(); return(rep.FindBySist(sistema_id)); }
//Responsável #region Responsável public void InserirResp(Responsavel r) { RepResponsavel rep = new RepResponsavel(); rep.Insert(r); }