Exemplo n.º 1
0
 public async Task <IPagedList <TestNavigation> > GetPaginatedTestNavigation(GetPaginatedTestNavigationQuery query)
 {
     return(await GetTestIncludeQueryable()
            .Where(ToExpression(query))
            .Select(t => ToTestNavigation(t))
            .FromPaginationQueryAsync(query));
 }
Exemplo n.º 2
0
 private static Expression <Func <Test, bool> > ToExpression(GetPaginatedTestNavigationQuery query)
 {
     return(test => !test.IsDeleted && (query.StepId == null || query.StepId == test.Step.Id));
 }