public ActionResult RemoveComment(int id) { int IdTopic = repository.GetTopicIdCommentId(id); bool result = repository.DeleteCommentFromTopic(id); if (result) { return(RedirectToAction("Go_To_Topic", new { controller = "Topic", action = "Go_To_Topic", id = IdTopic })); } else { ViewBag.ErrorMessage = "Problem with delecting Comment"; return(View("Error")); } }