I have a model that looks like this:
[DisplayName("Subject")]
public string SubjectID { get; set; }
public string SubjectText ??
What I want to do is to have the value of SubjectText be equal to the following when a user requests it:
SubjectText = SubjectReference.GetSubjectText(Model.PageMeta.SubjectID)
I also don’t want anyone to be able to set this value. How can I do this?
Use a property: