public IActionResult Modify(int id) { BlogComment blogComment = BlogCommentService.GetById(id); ModifyCommentModel model = ModelConverter.ConvertToModifyCommentModel(blogComment); return(View(model)); }
public IActionResult Modify(ModifyCommentModel model) { if (ModelState.IsValid) { BlogCommentService.Update(model.Id, model.Comment); return(RedirectToAction("ModifyCommentOverview")); } else { return(View(model)); } }
public IActionResult Modify(int id) { ModifyCommentModel model = ModelConverter.ConvertToModifyCommentsModel(MovieCommentService.GetById(id)); return(View(model)); }