public static TestPerson GetTestPersonModel() { var model = new TestPerson { PublicProperty = "Hello1", PublicField = 101, InternalProperty = "Hello2", InternalField = 102, ProtectedInternalProperty = "Hello3", ProtectedInternalField = 103, NullableDate = new DateTime() }; TestPerson.StaticProperty = "Hello4"; TestPerson.StaticField = 104; return model; }
public string UpdateProperties(TestPerson person) { person.PublicProperty = ValueUpdatedTo; return "I Changed Stuff!"; }