is this the best way to convert a repository to model?
- public static List<ProductRepository> ToRepositories(this List<ProductModel> model){
- var repo = new List<ProductRepository>();
- foreach (var m in model){
- repo.Add(m.ToRepository());
- }
- return repo;
- }