Example #1
0
        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);
        }
Example #2
0
        public static bool Update(DTO.EmpresaContratistaDTO myEmpresaContratistaDTO)
        {
            bool resultado = EmpresaContratistaDAL.Update(myEmpresaContratistaDTO);

            return(resultado);
        }
Example #3
0
        public static bool Insert(DTO.EmpresaContratistaDTO myEmpresaContratistaDTO)
        {
            bool resultado = EmpresaContratistaDAL.Insert(myEmpresaContratistaDTO);

            return(resultado);
        }