Exemplo n.º 1
0
        public ActionResult DeleteImage(string fileName, string subjectTitle)
        {
            var image = _imagesService.GetByFileName(fileName);

            _imagesService.Delete(image.Id);
            return(Redirect(String.Format("/Subjects/Subject?title={}", subjectTitle)));
        }