mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
d39f249649
commit
b3fd608c91
1 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using AutoMapper;
|
||||
using AutoMapper.QueryableExtensions;
|
||||
|
|
@ -18,7 +19,9 @@ public FilterListService(FilterListsDbContext dbContext, IConfigurationProvider
|
|||
}
|
||||
|
||||
public async Task<IEnumerable<ListSummaryDto>> GetAllSummariesAsync() =>
|
||||
await DbContext.FilterLists.ProjectTo<ListSummaryDto>(ConfigurationProvider).ToListAsync();
|
||||
await DbContext.FilterLists.OrderBy(l => l.Name)
|
||||
.ProjectTo<ListSummaryDto>(ConfigurationProvider)
|
||||
.ToListAsync();
|
||||
|
||||
public async Task<ListDetailsDto> GetDetailsAsync(uint id) =>
|
||||
await DbContext.FilterLists.ProjectTo<ListDetailsDto>(ConfigurationProvider)
|
||||
|
|
|
|||
Loading…
Reference in a new issue