Esempio n. 1
0
        public async Task <List <ILanguage> > GetLanguagePage(int pageNumber, int pageSize, CancellationToken cancellationToken = default(CancellationToken))
        {
            cancellationToken.ThrowIfCancellationRequested();
            DbDataReader reader = await dbLanguage.GetPage(pageNumber, pageSize);

            return(LoadLanguageListFromReader(reader));
        }
Esempio n. 2
0
        public async Task <List <ILanguage> > GetLanguagePage(int pageNumber, int pageSize)
        {
            DbDataReader reader = await dbLanguage.GetPage(pageNumber, pageSize);

            return(LoadLanguageListFromReader(reader));
        }