public static bool ValidaEliminacionParentesco(DTO.ParentescoDTO theParentescoDTO, ref DataTable pobjDatatable) { bool retorno = false; YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper(); wobjSQLHelper.SetParametro("@idParentesco", SqlDbType.VarChar, 20, theParentescoDTO.IdParentesco); try { //==================================================================================== if (wobjSQLHelper.Ejecutar("validaEliminacionParentesco", "YouCom", pobjDatatable) <= 0) { retorno = false; } else { retorno = true; } } catch (Exception eobjException) { throw eobjException; } return(retorno); }
public static bool Update(DTO.ParentescoDTO theParentescoDTO) { bool resultado = ParentescoDAL.Update(theParentescoDTO); return(resultado); }
public static bool Insert(DTO.ParentescoDTO theParentescoDTO) { bool resultado = ParentescoDAL.Insert(theParentescoDTO); return(resultado); }