vega icon indicating copy to clipboard operation
vega copied to clipboard

show error

Open klgunarathne opened this issue 7 years ago • 1 comments

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 image

klgunarathne avatar May 22 '17 06:05 klgunarathne

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);

chihkang avatar May 22 '17 16:05 chihkang