Geni Lou

Geni Lou

  • 2.1k
  • 95
  • 9.1k

Convert of List of Repository to List of Model

Feb 27 2021 1:59 AM
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)