ViewModel with XPM Attributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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