Added constructors to the entities

This commit is contained in:
2019-04-26 22:02:58 -04:00
parent acba25cc0b
commit 7be4075222
4 changed files with 52 additions and 8 deletions

View File

@@ -16,8 +16,25 @@ namespace BrightGlimmer.Domain
public string County { get; set; }
public string ZipCode { get; set; }
[JsonIgnore]
public decimal Latitude { get; set; }
public decimal Latitude { get; private set; }
[JsonIgnore]
public decimal Longitude { get; set; }
public decimal Longitude { get; private set; }
private Address() { }
public Address(string streetAddress1,
string streetAddress2,
string city,
string stateCode,
string county,
string zipCode)
{
StreetAddress1 = streetAddress1;
StreetAddress2 = streetAddress2;
City = city;
StateCode = stateCode;
County = county;
ZipCode = zipCode;
}
}
}