Added lazy loading and fixed private properties not deserializing

This commit is contained in:
2019-05-01 10:13:05 -05:00
parent ad26b5ef00
commit 1657510d1a
10 changed files with 28 additions and 27 deletions

View File

@@ -16,7 +16,7 @@ namespace BrightGlimmer.Domain
[JsonProperty]
public int Number { get; private set; }
private Phone() { }
protected Phone() { }
public Phone(PhoneType type, int areaCode, int number)
{