c# - How to implement nested Models in ASP.NET Web API? -
I can not find a tutorial that shows how to apply a model that manages hierarchical data. Example: How do I model:
{"name": "Joe Smith", "age": "40", "address": {"street" : "123pine", "city post-text" itemprop = "text"> < Former> person in public category {get public entity ID {ID; Set; } Public string name {get; Set; } Public int Age {Received; Set; } Public int AddressId {get; Set; } Public Address Address {get; Set; }} Public class address {public entry ad {get; Set; } Public String Street {Received; Set; } Public String City {Received; Set; }}
Comments
Post a Comment