Beispiel #1
0
        public ActionResult <Album> DeleteAlbum(Guid id)
        {
            var album = _albumService.Buscar(id);

            if (album == null)
            {
                return(NotFound());
            }

            _albumService.Deletar(id);

            return(album);
        }
Beispiel #2
0
 public IActionResult RemoverAlbum(Album album)
 {
     _albumService.Deletar(album.Id);
     _session.SetString("Alertas", "Parabéns!!!| Você acabou de excluir um album.");
     return(RedirectToAction("Index"));
 }