changed all list in contact profile view model to non-nullable and set default value to empty list

This commit is contained in:
ashutosh.nehete 2025-05-20 12:38:09 +05:30
parent 811e0ac807
commit ac7197c197

View File

@ -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<ContactPhoneVM>? ContactPhones { get; set; }
public List<ContactEmailVM>? ContactEmails { get; set; }
public List<ContactPhoneVM> ContactPhones { get; set; } = new List<ContactPhoneVM>();
public List<ContactEmailVM> ContactEmails { get; set; } = new List<ContactEmailVM>();
public ContactCategoryVM? ContactCategory { get; set; }
public List<BasicProjectVM>? Projects { get; set; }
public List<BucketVM>? Buckets { get; set; }
public List<ContactTagVM>? Tags { get; set; }
public List<ContactNoteVM>? Notes { get; set; }
public List<BasicProjectVM> Projects { get; set; } = new List<BasicProjectVM>();
public List<BucketVM> Buckets { get; set; } = new List<BucketVM>();
public List<ContactTagVM> Tags { get; set; } = new List<ContactTagVM>();
public List<ContactNoteVM> Notes { get; set; } = new List<ContactNoteVM>();
}
}