Ejemplo n.º 1
0
        //
        // GET: /Album/
        public ActionResult Index()
        {
            List<Album> albums;

            using (var _context = new DataContext())
            {
                albums = null;// _context.GetRecentAlbumsWithPictures(5);
            }

            return View(albums);
        }
Ejemplo n.º 2
0
        public ActionResult Details(string id)
        {
            Album album;

            using (var _context = new DataContext())
            {
                album = null;// _context.GetAlbumByFriendlyURL(id);
            }

            if (album == null)
                return new HttpNotFoundResult();

            return View(album);
        }
Ejemplo n.º 3
0
        public ActionResult Country(string id)
        {
            List<Album> albums;

            using (var _context = new DataContext())
            {
                albums = null;// _context.GetAlbumsByLocation(id);
            }

            if (albums == null || albums.Count < 1)
                return new HttpNotFoundResult();

            return View(albums);
        }