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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mario ScheerenRank #1,371 · 1.2K reputationPosted Mar 27, 2021, 1:24 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 28, 2021, 6:23 AM EDT
Rijwan AnsariRank #82 · 24.2K reputationPosted Mar 28, 2021, 2:00 PM EDT