Esempio n. 1
0
        public async Task <List <BasePackResponse> > GetAll(bool?loadPhrases = null)
        {
            var users = await _userRepository.GetAllAsync();

            var packs = loadPhrases == true
                ? await _packRepository.GetAllWithPhrasesAsync()
                : await _packRepository.GetAllAsync();

            return(packs.Select(p => new BasePackResponse(p, users)).ToList());
        }
Esempio n. 2
0
 public async Task <IList <Pack> > GetAll(string userId)
 {
     return(await _packRepository.GetAllAsync(userId));
 }