public async Task <ActionResult <List <ConsentSection> > > GetListConsentSession() { var user = await GetUser(); if (user == null) { return(NotFound()); } return(await _hydra.ListAllConsentSessions(user.UserName)); }
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)); }