示例#1
0
        public IActionResult Modify(int id)
        {
            BlogComment        blogComment = BlogCommentService.GetById(id);
            ModifyCommentModel model       = ModelConverter.ConvertToModifyCommentModel(blogComment);

            return(View(model));
        }
示例#2
0
 public IActionResult Modify(ModifyCommentModel model)
 {
     if (ModelState.IsValid)
     {
         BlogCommentService.Update(model.Id, model.Comment);
         return(RedirectToAction("ModifyCommentOverview"));
     }
     else
     {
         return(View(model));
     }
 }
示例#3
0
        public IActionResult Modify(int id)
        {
            ModifyCommentModel model = ModelConverter.ConvertToModifyCommentsModel(MovieCommentService.GetById(id));

            return(View(model));
        }