Пример #1
0
        public async Task <List <ILanguage> > GetAllLanguages(CancellationToken cancellationToken = default(CancellationToken))
        {
            cancellationToken.ThrowIfCancellationRequested();
            DbDataReader reader = await dbLanguage.GetAll(cancellationToken);

            return(LoadLanguageListFromReader(reader));
        }
Пример #2
0
        public async Task <List <ILanguage> > GetAllLanguages()
        {
            DbDataReader reader = await dbLanguage.GetAll();

            return(LoadLanguageListFromReader(reader));
        }