Exemplo n.º 1
0
        public static Comment GetComment(string id)
        {
            CommentsDataSource comDS = new CommentsDataSource();

            CommentEntry comm = comDS.GetById(id);

            return CreateCommentEnumerator(new List<CommentEntry>() { comm }).FirstOrDefault();
        }
Exemplo n.º 2
0
        static public void Update(Comment comment)
        {
            CommentsDataSource comDS = new CommentsDataSource();
            CommentEntry       comm  = comDS.GetById(comment.RowKey);

            Converter.CopyFields(comment, comm);
            comDS.Update(comm);
        }
Exemplo n.º 3
0
        static public Comment GetComment(string id)
        {
            CommentsDataSource comDS = new CommentsDataSource();

            CommentEntry comm = comDS.GetById(id);

            return(CreateCommentEnumerator(new List <CommentEntry>()
            {
                comm
            }).FirstOrDefault());
        }
Exemplo n.º 4
0
 public static void Update(Comment comment)
 {
     CommentsDataSource comDS = new CommentsDataSource();
     CommentEntry comm = comDS.GetById(comment.RowKey);
     Converter.CopyFields(comment, comm);
     comDS.Update(comm);
 }