public async Task <IEnumerable <ViewModels.DictaatSummary> > Get() { bool isAdmin = await _authorizationService.isAdmin(base.userId); var dictaten = _dictaatRepo.GetDictaten(base.userId, isAdmin); return(dictaten); }
public async Task <IEnumerable <ViewModels.DictaatSummary> > Get() { string userId = _userManager.GetUserId(User); bool isAdmin = await _authorizationService.isAdmin(User.Identity.Name); var dictaten = _dictaatRepo.GetDictaten(userId, isAdmin); return(dictaten); }
public IEnumerable <ViewModels.DictaatSummary> Get() { var dictaten = _dictaatRepo.GetDictaten(); return(dictaten); }