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); }
private PhotoComment(PhotoCommentData data) { _data = data; }