Example #1
0
        public async Task <IActionResult> DeleteArtConfirm(int Id)
        {
            try
            {
                Artwork artwork = ArtRepository.GetArtworkForUser(Id);
                await ArtRepository.DeleteArtworkFromArtworkTable(_hostEnvironment, artwork);

                return(Json(Id));
            }
            catch (Exception ex)
            {
                return(View(ex));
            }
        }