Exemple #1
0
 public ActionResult DelComment(string id)
 {
     if (string.IsNullOrEmpty(id))
     {
         return(Redirect("/Error/Http404"));
     }
     try
     {
         int        commentId = Convert.ToInt32(id);
         CommentDAO dao       = new CommentDAO();
         dao.DelComment(commentId);
         return(Redirect("/Home/AddComment/"));
     }
     catch (Exception)
     {
         return(Redirect("/Error/Http404"));
     }
 }