I have a class - Person
. The consumer of the Web API service must set the ID. I don't want them to be able to set or even see the InternalID.
public class Person
{
[Required(ErrorMessage = "ID is required.")]
public string ID { get; set; }
public string InternalID { get; set; }
}
Other parts of my application will need to work with the InternalID, so setting it private/internal won't work.