vega
vega copied to clipboard
show error
var makes = await context.Makes.Include(m => m.Models).ToArrayAsync(); return mapper.Map<List<Make>, List<MakeResourses>>(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
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);