예제 #1
0
        public static bool ValidaEliminacionCasa(DTO.CasaDTO theCasaDTO, ref DataTable pobjDatatable)
        {
            bool retorno = false;

            YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper();
            wobjSQLHelper.SetParametro("@idCasa", SqlDbType.VarChar, 20, theCasaDTO.IdCasa);

            try
            {
                //====================================================================================
                if (wobjSQLHelper.Ejecutar("validaEliminacionCasa", "YouCom", pobjDatatable) <= 0)
                {
                    retorno = false;
                }
                else
                {
                    retorno = true;
                }
            }
            catch (Exception eobjException)
            {
                throw eobjException;
            }
            return(retorno);
        }
예제 #2
0
        public static bool Insert(DTO.CasaDTO myCasaDTO)
        {
            bool resultado = CasaDAL.Insert(myCasaDTO);

            return(resultado);
        }
예제 #3
0
        public static bool Update(DTO.CasaDTO myCasaDTO)
        {
            bool resultado = CasaDAL.Update(myCasaDTO);

            return(resultado);
        }
예제 #4
0
        public static bool Delete(DTO.CasaDTO myCasaDTO)
        {
            bool resultado = CasaDAL.Delete(myCasaDTO);

            return(resultado);
        }