From d8d234a838e0846e6f85fa69a4c25197779c16d3 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Tue, 20 May 2025 12:38:09 +0530 Subject: [PATCH] changed all list in contact profile view model to non-nullable and set default value to empty list --- .../ViewModels/Directory/ContactProfileVM.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Marco.Pms.Model/ViewModels/Directory/ContactProfileVM.cs b/Marco.Pms.Model/ViewModels/Directory/ContactProfileVM.cs index 8103c5c..9e8f4cb 100644 --- a/Marco.Pms.Model/ViewModels/Directory/ContactProfileVM.cs +++ b/Marco.Pms.Model/ViewModels/Directory/ContactProfileVM.cs @@ -15,12 +15,12 @@ namespace Marco.Pms.Model.ViewModels.Directory public BasicEmployeeVM? CreatedBy { get; set; } public DateTime? UpdatedAt { get; set; } public BasicEmployeeVM? UpdatedBy { get; set; } - public List? ContactPhones { get; set; } - public List? ContactEmails { get; set; } + public List ContactPhones { get; set; } = new List(); + public List ContactEmails { get; set; } = new List(); public ContactCategoryVM? ContactCategory { get; set; } - public List? Projects { get; set; } - public List? Buckets { get; set; } - public List? Tags { get; set; } - public List? Notes { get; set; } + public List Projects { get; set; } = new List(); + public List Buckets { get; set; } = new List(); + public List Tags { get; set; } = new List(); + public List Notes { get; set; } = new List(); } }