Ejemplo n.º 1
0
 /// <summary>
 /// Finds paged vocabularies.
 /// </summary>
 /// <param name="vocabularyFilterDto">The filtering DTO</param>
 /// <returns>The Vocabulary DTO page</returns>
 internal IPagedList <VocabularyDto> FindPaged(VocabularyFilterDto vocabularyFilterDto)
 {
     return(_modelContext.Set <Vocabulary>()
            .OrderBy(x => x.Word)
            .Select(x => new VocabularyDto()
     {
         Id = x.Id, Word = x.Word, Translate = x.Translate
     })
            .ToPagedList(vocabularyFilterDto.Page, vocabularyFilterDto.PageSize));
 }
Ejemplo n.º 2
0
 public IPagedList <VocabularyDto> ReadAdministrationPaged(VocabularyFilterDto vocabularyFilterDto)
 {
     return(_vocabularyDao.FindPaged(vocabularyFilterDto));
 }
Ejemplo n.º 3
0
 public ActionResult PagedList(VocabularyFilterDto vocabularyFilterDto)
 {
     ViewBag.FilterDto = vocabularyFilterDto;
     return(PartialView(WebConstants.VIEW_PAGED_LIST, GetService().ReadAdministrationPaged(vocabularyFilterDto)));
 }