Ejemplo n.º 1
0
        public void Delete(int id)
        {
            var podcast = _podcastService.GetById(id);

            var filePath = "Content\\Podcast\\" + podcast.name;

            _fileService.Delete(filePath);
            _podcastService.Delete(id);
        }
Ejemplo n.º 2
0
        public IActionResult Delete(int id, string type, int tagId, int pageNumber)
        {
            _podcastService.Delete(id);

            return(RedirectToAction("Index", new { type = type, tagId, pageNumber = pageNumber == 0 ? 1 : pageNumber }));
        }