From 28777d84379774475399f2fb2420747524e18dd3 Mon Sep 17 00:00:00 2001 From: Ricardo Carneiro Date: Thu, 18 Sep 2025 18:21:51 -0300 Subject: [PATCH] fix: paginas de teste --- src/BCards.Web/Models/UserPage.cs | 2 ++ src/BCards.Web/Views/UserPage/Display.cshtml | 27 +++++++++++++------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/BCards.Web/Models/UserPage.cs b/src/BCards.Web/Models/UserPage.cs index 68bfe46..62b59fe 100644 --- a/src/BCards.Web/Models/UserPage.cs +++ b/src/BCards.Web/Models/UserPage.cs @@ -94,9 +94,11 @@ public class UserPage : IPageDisplay // Exclusão lógica [BsonElement("deletedAt")] + [BsonIgnoreIfDefault] public DateTime? DeletedAt { get; set; } [BsonElement("deletionReason")] + [BsonIgnoreIfDefault] public string? DeletionReason { get; set; } // "trial_expired", "user_requested", "moderation_violation" [BsonIgnore] diff --git a/src/BCards.Web/Views/UserPage/Display.cshtml b/src/BCards.Web/Views/UserPage/Display.cshtml index 3d4a358..b2eb1cf 100644 --- a/src/BCards.Web/Views/UserPage/Display.cshtml +++ b/src/BCards.Web/Views/UserPage/Display.cshtml @@ -217,15 +217,24 @@ @section Scripts {