Esempio n. 1
0
        public JsonResult DeleteComment(DeleteCommentModel ComentModel)
        {
            CommentManagement CM = new CommentManagement();
            CM.DeleteComment(ComentModel.CommentId);

            return Json(true);
        }
Esempio n. 2
0
        // GET: Test
        public ActionResult Index()
        {
            CommentManagement cm = new CommentManagement();
            PhotoComment pc = cm.GetComment(1);

            return View(pc);
        }
Esempio n. 3
0
 public PartialViewResult AddComment(CommentModeModel CommentModel)
 {
     CommentManagement CM = new CommentManagement();
     PhotoComment SPM = CM.InsertComment(CommentModel.PhotoId, CommentModel.UserId, CommentModel.CommentStr);
     PhotoComment SPM2 = new CommentManagement().GetComment(SPM.PhotoCommentId);
     return PartialView("_SingleComment", SPM2);
 }