public bool AddComment(GeneralDTO model) { Comment comment = new Comment(); comment.PostID = model.PostID; comment.NameSurname = model.Name; comment.Email = model.Email; comment.CommentContent = model.Message; comment.AddDate = DateTime.Now; dao.AddComment(comment); return(true); }