예제 #1
0
        // GET: Comment/Delete/5
        public ActionResult DeleteComm(int id, string idUser, DateTime date)
        {
            commentt item = new commentt();

            item = commSer.Get(t => t.article.idArticle == id && t.idUser.Equals(idUser) && t.date == date);
            CommentViewModels g = new CommentViewModels()
            {
                idArticle   = item.idArticle,
                idUser      = item.idUser,
                description = item.description,
                date        = item.date,
            }; return(View(g));
        }