예제 #1
0
        public static bool ValidaEliminacionFamilia(DTO.FamiliaDTO theFamiliaDTO, ref DataTable pobjDatatable)
        {
            bool retorno = false;

            YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper();
            wobjSQLHelper.SetParametro("@idFamilia", SqlDbType.Decimal, -1, theFamiliaDTO.IdFamilia);

            try
            {
                //====================================================================================
                if (wobjSQLHelper.Ejecutar("validaEliminacionFamilia", "YouCom", pobjDatatable) <= 0)
                {
                    retorno = false;
                }
                else
                {
                    retorno = true;
                }
            }
            catch (Exception eobjException)
            {
                throw eobjException;
            }
            return(retorno);
        }
예제 #2
0
        public static bool Update(DTO.FamiliaDTO theFamiliaDTO)
        {
            bool resultado = FamiliaDAL.Update(theFamiliaDTO);

            return(resultado);
        }
예제 #3
0
        public static bool Insert(DTO.FamiliaDTO theFamiliaDTO)
        {
            bool resultado = FamiliaDAL.Insert(theFamiliaDTO);

            return(resultado);
        }