Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ViewModel with XPM Attributes
[InlineEditable]
public class Article : IArticle
{
[InlineEditableField(FieldName="title")]
public string Title {get;set;}
[InlineEditableField(FieldName="short_intro")]
public string Summary {get;set;}
private IList<string> _relatedLinks = new List<string>();
[InlineEditableField(FieldName="related_links")]
public IList<string> RelatedLinks
{
get
{
return _relatedLinks;
}
set
{
_relatedLinks = value;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.