Beispiel #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            Artwork artwork = _artworkService.GetArtwork(id);

            _artworkService.DeleteArtwork(artwork);
            _artworkService.SaveArtwork();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
        //Deletes artwork.
        public async Task DeleteArtworkAsync(string artworkName)
        {
            await _artworkService.DeleteArtwork(artworkName);

            await UpdateArtworkListAsync();
        }