public ActionResult DeleteConfirmed(Guid id) { var moviesAssociatedGenre = genresService.LogicalRemovalGenreById(id); if (moviesAssociatedGenre == null) { return(RedirectToAction("Index")); } return(Json(new { Success = false, Text = "Gênero associado ao(s) filme(s) abaixo:", MoviesAssociatedGenre = moviesAssociatedGenre })); }