Exemple #1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
         Comment comment = new Comment();
         comment.NameUser = Request.Form["nam"];
         comment.StrComment = Request.Form["com"];
         if((comment.NameUser != "") && (comment.StrComment != ""))
             RepositoryOfComments.GetRepository().AddComment(comment);
         GetComments();
 }
 public void AddComment(Comment com)
 {
     ListOfComments.Add(com);
 }