mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
order software by name alphabetically
This commit is contained in:
parent
d594bf352b
commit
fc562a0531
1 changed files with 2 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,6 +19,6 @@ public SoftwareService(FilterListsDbContext dbContext, IConfigurationProvider ma
|
|||
}
|
||||
|
||||
public async Task<IEnumerable<SoftwareDto>> GetAll() =>
|
||||
await DbContext.Software.ProjectTo<SoftwareDto>(MapConfig).ToListAsync();
|
||||
await DbContext.Software.OrderBy(s => s.Name).ProjectTo<SoftwareDto>(MapConfig).ToListAsync();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue