diff --git a/src/DevBetterWeb.Core/ValueObjects/Address.cs b/src/DevBetterWeb.Core/ValueObjects/Address.cs
index 3d6305a4c..12e8cbd47 100644
--- a/src/DevBetterWeb.Core/ValueObjects/Address.cs
+++ b/src/DevBetterWeb.Core/ValueObjects/Address.cs
@@ -47,4 +47,9 @@ public string ToCityStateCountryString()
return string.Join(',', tokens);
}
+
+ public override string ToString()
+ {
+ return $"{this.Street}, {this.City}, {this.State} {this.PostalCode}, {this.Country}";
+ }
}
diff --git a/src/DevBetterWeb.Web/DevBetterWeb.Web.csproj b/src/DevBetterWeb.Web/DevBetterWeb.Web.csproj
index 3407d05f7..4b4bdcb6b 100644
--- a/src/DevBetterWeb.Web/DevBetterWeb.Web.csproj
+++ b/src/DevBetterWeb.Web/DevBetterWeb.Web.csproj
@@ -30,6 +30,7 @@
+
If set, birthday will be visible to other devBetter members and may be used to celebrate your day via Discord, coaching sessions, etc.
diff --git a/src/DevBetterWeb.Web/Pages/User/MyProfile/Personal.cshtml.cs b/src/DevBetterWeb.Web/Pages/User/MyProfile/Personal.cshtml.cs index d6c9a3a3d..e9c2dc478 100644 --- a/src/DevBetterWeb.Web/Pages/User/MyProfile/Personal.cshtml.cs +++ b/src/DevBetterWeb.Web/Pages/User/MyProfile/Personal.cshtml.cs @@ -80,7 +80,6 @@ public async Task OnPost() member.UpdateName(UserPersonalUpdateModel.FirstName, UserPersonalUpdateModel.LastName); member.UpdatePEInfo(UserPersonalUpdateModel.PEFriendCode, UserPersonalUpdateModel.PEUsername); member.UpdateAboutInfo(UserPersonalUpdateModel.AboutInfo); - member.UpdateAddress(UserPersonalUpdateModel.Address); member.UpdateBirthday(UserPersonalUpdateModel.BirthdayDay, UserPersonalUpdateModel.BirthdayMonth); member.UpdateDiscord(UserPersonalUpdateModel.DiscordUsername); member.UpdateEmail(UserPersonalUpdateModel.Email); diff --git a/src/DevBetterWeb.Web/Pages/User/MyProfile/ShippingAddress.cshtml b/src/DevBetterWeb.Web/Pages/User/MyProfile/ShippingAddress.cshtml new file mode 100644 index 000000000..839aad75f --- /dev/null +++ b/src/DevBetterWeb.Web/Pages/User/MyProfile/ShippingAddress.cshtml @@ -0,0 +1,66 @@ +@page +@using System.Linq; +@model DevBetterWeb.Web.Pages.User.ShippingAddressModel +@{ + ViewData["Title"] = "My Profile: Shipping Address"; +} + +