Пример #1
0
        public static PhotoComment AddCommentToPhoto(int PhotoID, User Author, string Comment)
        {
            PhotoCommentData thisComment = new PhotoCommentData();

            thisComment.AuthorID    = Author.ID;
            thisComment.Comment     = Comment;
            thisComment.PhotoID     = PhotoID;
            thisComment.CommentTime = DateTime.Now;
            PhotoComment newComment = new PhotoComment(thisComment);

            thisComment.ID = newComment.Save();
            return(newComment);
        }
Пример #2
0
 private PhotoComment(PhotoCommentData data)
 {
     _data = data;
 }