public async Task <IActionResult> ReplyPost(PostViewModel model) { var userId = _userManager.GetUserId(User); var user = _userManager.FindByIdAsync(userId).Result; var post = _postService.GetById(model.Id); var reply = new PostReply { Content = model.NewReply.Content, Created = DateTime.Now, User = user, Post = post }; await _commentService.AddReply(reply); return(RedirectToAction("Index", "Post", new { Id = reply.Post.Id })); }