예제 #1
0
    public string InsertarDudasEmpresa(String mensaje, int idEmpre, string nomUser, string correoUser)
    {
        try
        {
            if (SoapHeader == null)
            {
                throw new Exception("Requiere Validacion");
            }

            if (!SoapHeader.blCredencialesValidas(SoapHeader))
            {
                throw new Exception("Requiere Validacion");
            }
            L_ServicioComentario logi = new L_ServicioComentario();
            try
            {
                logi.insertar_Comentario(mensaje, idEmpre, nomUser, correoUser);
                return("Comentario Enviado Correctamente");
            }
            catch (Exception ex)
            {
                //ENVIAR MENSAJE DE ERROR
                return("Ha Ocurrido Un Error Inesperado " + ex.Message);
            }
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
예제 #2
0
    public string cargar_empresas()
    {
        try
        {
            if (SoapHeader == null)
            {
                throw new Exception("Requiere Validacion");
            }

            if (!SoapHeader.blCredencialesValidas(SoapHeader))
            {
                throw new Exception("Requiere Validacion");
            }
            L_ServicioComentario logi = new L_ServicioComentario();
            return(logi.load_companies());
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }