Ejemplo n.º 1
0
        public PhotoComment CreateComment(PhotoComment comment)
        {
            PhotoCommentPO commentPO = comment.ToPhotoCommentPO();

            commentPO.CreatedOn = DateTime.Now.ToUniversalTime();
            Database.GetCollection <PhotoCommentPO>(Collections.PhotoComments).Save(commentPO);
            return(commentPO.ToPhotoComment());
        }