public static bool ValidaEliminacionListaNegra(DTO.ListaNegraDTO theListaNegraDTO, ref DataTable pobjDatatable) { bool retorno = false; YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper(); wobjSQLHelper.SetParametro("@idListaNegra", SqlDbType.VarChar, 20, theListaNegraDTO.IdListaNegra); try { //==================================================================================== if (wobjSQLHelper.Ejecutar("validaEliminacionListaNegra", "YouCom", pobjDatatable) <= 0) { retorno = false; } else { retorno = true; } } catch (Exception eobjException) { throw eobjException; } return(retorno); }
public static bool Update(DTO.ListaNegraDTO myListaNegraDTO) { bool resultado = ListaNegraDAL.Update(myListaNegraDTO); return(resultado); }
public static bool Insert(DTO.ListaNegraDTO myListaNegraDTO) { bool resultado = ListaNegraDAL.Insert(myListaNegraDTO); return(resultado); }