Skip to content

Commit

Permalink
ContactInfo class
Browse files Browse the repository at this point in the history
  • Loading branch information
effedib committed Nov 1, 2023
1 parent a68727e commit c399788
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,17 @@ public class Contact
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }

[BsonElement("0")]
public ContactInfo? Info { get; set; }
}

public class ContactInfo
{
[BsonElement("name")]
public string? Name { get; set; }

[BsonElement("phone")]
public string? Phone { get; set; }

}

}

0 comments on commit c399788

Please sign in to comment.