Geni Lou

Geni Lou

  • NA
  • 101
  • 24.2k

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)