Skip to content

Instantly share code, notes, and snippets.

@albertromkes
Last active January 4, 2016 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albertromkes/8652069 to your computer and use it in GitHub Desktop.
Save albertromkes/8652069 to your computer and use it in GitHub Desktop.
[InlineEditable]
public class ArticleModel
{
[InlineEditableField(FieldName="title")]
public string Title { get; set; }
[InlineEditableField(FieldName="complink_to_article")]
public HyperLink LinkToFullArticle { get; set; }
[InlineEditableField(FieldName="related_articles")]
public List<HyperLink> RelatedArticles { get; set; }
[InlineEditableField(FieldName="publish_date")]
public DateTime PublishDate { get; set; }
[InlineEditableField(FieldName="prio")]
public int Priority { get; set; }
}
[InlineEditable]
public class HyperLink
{
[InlineEditableField(FieldName="link_to")]
public string Url { get; set; }
[InlineEditableField(FieldName="link_title")]
public string LinkTitle { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment