4
Answers

Convert of List of Repository to List of Model

Photo of Geni Lou

Geni Lou

4y
892
1
I try to convert a list of repository just like the code below it doesn't work and encounter error message. 
 Cannot convert type 'System.Collection.Generic.List<CategoryRepository>' to 'System.Collection.List<CategoryModel>'
(List<CategoryModel>)repoList 
 
 

Answers (4)