Esempio n. 1
0
        public IActionResult AlbumDetails(int id)
        {
            AlbumsModel album = new AlbumsModel();

            if (id != 0)
            {
                album = _baseConnections.GetAlbumById(id);
            }

            return(View(album));
        }
Esempio n. 2
0
        // GET: AlbumDetailsController/Edit/5
        public ActionResult Edit(int id)
        {
            AlbumsModel album = _baseConnections.GetAlbumById(id);

            return(View(album));
        }