Example #1
0
        public IActionResult Delete(int id)
        {
            var results = Services.DeleteGallery(id);

            if (results == true)
            {
                return(RedirectToAction("Index", "GalleryMVC"));
            }
            return(BadRequest("Deletion was unsuccesful"));
        }