public static Comment GetComment(string id) { CommentsDataSource comDS = new CommentsDataSource(); CommentEntry comm = comDS.GetById(id); return CreateCommentEnumerator(new List<CommentEntry>() { comm }).FirstOrDefault(); }
static public void Update(Comment comment) { CommentsDataSource comDS = new CommentsDataSource(); CommentEntry comm = comDS.GetById(comment.RowKey); Converter.CopyFields(comment, comm); comDS.Update(comm); }
static public Comment GetComment(string id) { CommentsDataSource comDS = new CommentsDataSource(); CommentEntry comm = comDS.GetById(id); return(CreateCommentEnumerator(new List <CommentEntry>() { comm }).FirstOrDefault()); }
public static void Update(Comment comment) { CommentsDataSource comDS = new CommentsDataSource(); CommentEntry comm = comDS.GetById(comment.RowKey); Converter.CopyFields(comment, comm); comDS.Update(comm); }