//
 // GET: /Comment/Delete/5
 public ActionResult Delete(int id = 0)
 {
     Comment comment = context.FindCommentById(id);
     ViewBag.PhotoID = comment.PhotoID;
     if (comment == null)
     {
         return HttpNotFound();
     }
     return View(comment);
 }
Exemplo n.º 2
0
        public ActionResult Delete(int id = 0)
        {
            Commentaire commentaire = context.FindCommentById(id);

            ViewBag.PhotoID = commentaire.PhotoID;
            if (commentaire == null)
            {
                return(HttpNotFound());
            }
            return(View(commentaire));
        }