public bool Excluir(int intCOD) { try { Familiares_VO objFamiliares_VO = new Familiares_VO(); objFamiliares_VO.settCOD(intCOD); Familiares_FD objFamiliares_FD = new Familiares_FD(); return(objFamiliares_FD.Excluir(objFamiliares_VO)); } catch (Exception ex) { throw ex; } }
public DataTable Consultar(string strNome = null, int?intCod = null) { try { Familiares_VO objFamiliares_VO = new Familiares_VO(); objFamiliares_VO.settCOD(Convert.ToInt32(intCod == null ? 0 : intCod)); objFamiliares_VO.settNome(strNome); Familiares_FD objFamiliares_FD = new Familiares_FD(); return(objFamiliares_FD.Consultar(objFamiliares_VO)); } catch (Exception ex) { throw ex; } }