public List <GalleryModel> GetGalleries() { var Igalleries = _gm.GetGalleries(); var newGalleries = new List <GalleryModel>(); foreach (var gal in Igalleries) { var newGallery = new GalleryModel(gal); newGalleries.Add(newGallery); } return(newGalleries); }
public List <Gallery> AllGalleries() { List <Gallery> newGalleries = new List <Gallery>(); List <IGallery> galleries = _gm.GetGalleries(); foreach (var gallery in galleries) { var gal = new Gallery(gallery); newGalleries.Add(gal); } return(newGalleries); }