Ejemplo n.º 1
0
        private void PopulateDefaultProperties(RateContribution rateContribution)
        {
            BearerToken bearerToken = new BearerToken();
            var         activeToken = bearerToken.GetActiveToken();

            rateContribution.musician_id = int.Parse(activeToken.client);
        }
Ejemplo n.º 2
0
    public static int GetLoggedUserId()
    {
        BearerToken bearerToken = new BearerToken(new BearerDatabaseManager());
        var         activeToken = bearerToken.GetActiveToken();

        var retorno = int.Parse(activeToken.client);

        return(retorno);
    }