Esempio n. 1
0
        public ActionResult ViewAlbum(string gid)
        {
            var id    = Guid.Parse(gid);
            var album = new Album(Dal.GetAlbumById(id));

            album.Photos = Dal.GetAlbumPhotos(id).Select(x => new Photo(x)).ToList();
            return(View(model: album));
        }