public async Task <IActionResult> Edit(CommentView result) { if (!ModelState.IsValid) { return(View(result)); } var comment = await _commentService.Get(result.Id); await _commentService.Update(CommentHelpers.MergeViewWithModel(comment, result)); return(RedirectToAction("List")); }