Пример #1
0
        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);
        }
Пример #2
0
        public static bool Update(DTO.ParentescoDTO theParentescoDTO)
        {
            bool resultado = ParentescoDAL.Update(theParentescoDTO);

            return(resultado);
        }
Пример #3
0
        public static bool Insert(DTO.ParentescoDTO theParentescoDTO)
        {
            bool resultado = ParentescoDAL.Insert(theParentescoDTO);

            return(resultado);
        }