mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
optimize async with automapper
This commit is contained in:
parent
810e015c4f
commit
3326fe0edf
1 changed files with 1 additions and 4 deletions
|
|
@ -1,6 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using AutoMapper;
|
||||
using AutoMapper.QueryableExtensions;
|
||||
using FilterLists.Data;
|
||||
using FilterLists.Data.Entities;
|
||||
|
|
@ -12,12 +11,10 @@ namespace FilterLists.Services.Services
|
|||
public class SeedService
|
||||
{
|
||||
private readonly FilterListsDbContext filterListsDbContext;
|
||||
private readonly IMapper mapper;
|
||||
|
||||
public SeedService(FilterListsDbContext filterListsDbContext, IMapper mapper)
|
||||
public SeedService(FilterListsDbContext filterListsDbContext)
|
||||
{
|
||||
this.filterListsDbContext = filterListsDbContext;
|
||||
this.mapper = mapper;
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<FilterListSeedDto>> GetAllFilterLists()
|
||||
|
|
|
|||
Loading…
Reference in a new issue