Exemplo n.º 1
0
        public IActionResult Modify(int id)
        {
            BlogComment        blogComment = BlogCommentService.GetById(id);
            ModifyCommentModel model       = ModelConverter.ConvertToModifyCommentModel(blogComment);

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

            return(View(model));
        }