public CommentModel() { this.index = new Lazy <int>(() => StoredProcs.Comments_GetCommentIndex(this.Id).Execute().Value); this.parentCommentIndex = new Lazy <int?>(() => this.ParentCommentId.HasValue ? StoredProcs.Comments_GetCommentIndex(this.ParentCommentId).Execute() : null); this.getLinks = new Lazy <IList <string> >(() => HtmlCleaner.GetLinkUrls(this.BodyHtml).ToList()); }
public CommentModel() { this.getLinks = new Lazy <IList <string> >(() => HtmlCleaner.GetLinkUrls(this.BodyHtml).ToList()); }