Exemplo n.º 1
0
        public async Task <IList <ApplicationRole> > GetCurrentUserRoles()
        {
            var currentUser = await GetCurrentUser();

            return(await ApplicationRole.GetRolesForUser(currentUser, userManager));
        }