Exemple #1
0
        public async Task <IEnumerable <ViewModels.DictaatSummary> > Get()
        {
            bool isAdmin = await _authorizationService.isAdmin(base.userId);

            var dictaten = _dictaatRepo.GetDictaten(base.userId, isAdmin);

            return(dictaten);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        public IEnumerable <ViewModels.DictaatSummary> Get()
        {
            var dictaten = _dictaatRepo.GetDictaten();

            return(dictaten);
        }