Exemple #1
0
 public async Task <ActionResult> Add(CommentPostModel model)
 {
     if (ModelState.IsValid)
     {
         await _dbContext.AddCommentAsync(model);
     }
     return(RedirectToAction("Detsils", "Post", routeValues: new { id = model.PostId }));
 }