public static bool ValidaEliminacionProyectoEstado(DTO.ProyectoEstadoDTO theProyectoEstadoDTO, ref DataTable pobjDatatable) { bool retorno = false; YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper(); wobjSQLHelper.SetParametro("@idProyectoEstado", SqlDbType.VarChar, 20, theProyectoEstadoDTO.IdProyectoEstado); try { //==================================================================================== if (wobjSQLHelper.Ejecutar("validaEliminacionProyectoEstado", "YouCom", pobjDatatable) <= 0) { retorno = false; } else { retorno = true; } } catch (Exception eobjException) { throw eobjException; } return(retorno); }
public static bool Update(DTO.ProyectoEstadoDTO myProyectoEstadoDTO) { bool resultado = ProyectoEstadoDAL.Update(myProyectoEstadoDTO); return(resultado); }
public static bool Insert(DTO.ProyectoEstadoDTO myProyectoEstadoDTO) { bool resultado = ProyectoEstadoDAL.Insert(myProyectoEstadoDTO); return(resultado); }