コード例 #1
0
        public static bool ValidaEliminacionAreasComunes(DTO.AreasComunesDTO theAreasComunesDTO, ref DataTable pobjDatatable)
        {
            bool retorno = false;

            YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper();
            wobjSQLHelper.SetParametro("@idAreasComunes", SqlDbType.VarChar, 20, theAreasComunesDTO.IdAreasComunes);

            try
            {
                //====================================================================================
                if (wobjSQLHelper.Ejecutar("validaEliminacionAreaComun", "YouCom", pobjDatatable) <= 0)
                {
                    retorno = false;
                }
                else
                {
                    retorno = true;
                }
            }
            catch (Exception eobjException)
            {
                throw eobjException;
            }
            return(retorno);
        }
コード例 #2
0
        public static bool Update(DTO.AreasComunesDTO myAreasComunesDTO)
        {
            bool resultado = AreasComunesDAL.Update(myAreasComunesDTO);

            return(resultado);
        }
コード例 #3
0
        public static bool Insert(DTO.AreasComunesDTO myAreasComunesDTO)
        {
            bool resultado = AreasComunesDAL.Insert(myAreasComunesDTO);

            return(resultado);
        }