public static bool ValidaEliminacionEmpresaContratista(DTO.EmpresaContratistaDTO theEmpresaContratistaDTO, ref DataTable pobjDatatable) { bool retorno = false; YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper(); wobjSQLHelper.SetParametro("@idEmpresaContratista", SqlDbType.VarChar, 20, theEmpresaContratistaDTO.IdEmpresaContratista); try { //==================================================================================== if (wobjSQLHelper.Ejecutar("validaEliminacionEmpresaContratista", "YouCom", pobjDatatable) <= 0) { retorno = false; } else { retorno = true; } } catch (Exception eobjException) { throw eobjException; } return(retorno); }
public static bool Update(DTO.EmpresaContratistaDTO myEmpresaContratistaDTO) { bool resultado = EmpresaContratistaDAL.Update(myEmpresaContratistaDTO); return(resultado); }
public static bool Insert(DTO.EmpresaContratistaDTO myEmpresaContratistaDTO) { bool resultado = EmpresaContratistaDAL.Insert(myEmpresaContratistaDTO); return(resultado); }