optimize async with automapper

This commit is contained in:
Collin Barrett 2018-01-24 20:11:02 -06:00
parent 810e015c4f
commit 3326fe0edf

View file

@ -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()