Exemple #1
0
        public async Task <ActionResult <List <ConsentSection> > > GetListConsentSession()
        {
            var user = await GetUser();

            if (user == null)
            {
                return(NotFound());
            }
            return(await _hydra.ListAllConsentSessions(user.UserName));
        }
Exemple #2
0
        public async Task <ActionResult <List <ConsentSection> > > GetListConsentSession(string id)
        {
            var appUser = await _userManager.FindByIdAsync(id);

            if (appUser == null)
            {
                return(NotFound());
            }
            return(await _hydra.ListAllConsentSessions(appUser.UserName));
        }