Exemplo n.º 1
0
        public static List <AlbumPhoto> GetPhtotoInAlbum(int albumId)
        {
            var pathGellaryPhoto           = ConfigurationManager.AppSettings["pathGalleryPhoto"];
            IGalleryRepository galleryRepo = new GalleryRepository();
            var photos = galleryRepo.GetPhotoInAlbum(albumId);

            foreach (var photo in photos)
            {
                photo.Path = pathGellaryPhoto + photo.Path;
            }
            return(photos);
        }