is this the best way to convert a repository to model?
- public static List
ToRepositories( this Listmodel){ - var repo = new List
(); - foreach (var m in model){
- repo.Add(m.ToRepository());
- }
- return repo;
- }
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rijwan AnsariPosted Mar 28, 2021, 6:00 PM
Jignesh KumarPosted Mar 28, 2021, 10:23 AM
Mario ScheerenPosted Mar 27, 2021, 5:24 PM