show error
klgunarathne opened this issue · 1 comments
klgunarathne commented
var makes = await context.Makes.Include(m => m.Models).ToArrayAsync();
return mapper.Map<List, List>(makes);
error is
Argument 1: cannot convert from 'angular2project2.Models.Make[]' to 'System.Collections.Generic.List<angular2project2.Models.Make>' [C:\Users\k.l.gunarathne\Documents\Visual Studio 2015\Projects\angular2project2\Angular2project2.csproj]
in MakesController
chihkang commented
I think this is not an issue, you could check your section at commits
The code should be
var makes = await context.Makes.Include(m => m.Models).ToListAsync();
return mapper.Map<List<Make>,List<MakeResource>>(makes);