Ejemplo n.º 1
0
        //
        // GET: /Comentario/Delete/5
        public ActionResult Delete(int id)
        {
            Comentario comentario = comentarioRepository.Get(id);
            Post       post       = postRepository.Get(comentario.IdPost);

            comentarioRepository.Delete(id);
            return(RedirectToAction("GetByPost", new { tituloPost = post.Titulo, idPost = post.IdPost }));
        }