Exemple #1
0
 public IActionResult postcomment(int id, string comment)
 {
     if (comment.Length > 3)
     {
         userFactory.AddComment((int)HttpContext.Session.GetInt32("id"), id, comment);
     }
     return(RedirectToAction("wall"));
 }