Beispiel #1
0
        public static bool ValidaEliminacionEmpresaServicio(DTO.Servicio.EmpresaServicioDTO theEmpresaServicioDTO, ref DataTable pobjDatatable)
        {
            bool retorno = false;

            YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper();
            wobjSQLHelper.SetParametro("@idEmpresaServicio", SqlDbType.VarChar, 20, theEmpresaServicioDTO.IdEmpresaServicio);

            try
            {
                //====================================================================================
                if (wobjSQLHelper.Ejecutar("validaEliminacionEmpresaServicio", "YouCom", pobjDatatable) <= 0)
                {
                    retorno = false;
                }
                else
                {
                    retorno = true;
                }
            }
            catch (Exception eobjException)
            {
                throw eobjException;
            }
            return(retorno);
        }
Beispiel #2
0
        public static bool Update(DTO.Servicio.EmpresaServicioDTO myEmpresaServicioDTO)
        {
            bool resultado = EmpresaServicioDAL.Update(myEmpresaServicioDTO);

            return(resultado);
        }
Beispiel #3
0
        public static bool Insert(DTO.Servicio.EmpresaServicioDTO myEmpresaServicioDTO)
        {
            bool resultado = EmpresaServicioDAL.Insert(myEmpresaServicioDTO);

            return(resultado);
        }