Example #1
0
        public static bool Save(Comment yorum)
        {
            string tar = DateTime.Today.ToString();
            SqlConnection bag = DataHelp.baglan();

            IEnumerable<Comment> Yorum = bag.Query<Comment>(
                "INSERT INTO Comment (IdWriting_Comment,Mail_Comment,Text_Comment,Date_Comment) VALUES(@idw,@mailc,@tc,@tarih)",
                new {idw=yorum.IdWriting_Comment,mailc= yorum.Mail_Comment,tc= yorum.Text_Comment,tarih=tar });

            return true;
        }
Example #2
0
 public bool POST(Comment yorum)
 {
     return CommentManager.Save(yorum);
 }