public List <DTOConciseQuestionnaireScope> GetAllQuestionnairies(string token) { if (!_userValidation.ValidateToken(token)) { throw new AddressAccessDeniedException(); } ObjectCache cache = MemoryCache.Default; _log.Information($"GetAllQuestionnairies received"); var scopes = _questionnaireRepository.GetAll(); return(scopes); }
protected override async void Refresh() { if (_client != null && _eventVm != null) { var questionnaires = await _repo.GetAll(_eventVm.EntityViewModel?.Id); ViewModels .CopyFrom( questionnaires .Select(elem => new GenericEditEntityViewModel <QuestionnaireViewModel, Questionnaire>(_client, _mapper, elem)) .ToList() ); } }