Refactoring and adding new endpoint

This commit is contained in:
kdeng00
2023-10-06 22:18:23 -04:00
parent 4accff050c
commit 421488c120
6 changed files with 169 additions and 10 deletions
+10 -2
View File
@@ -8,12 +8,20 @@ namespace TextSender_API.Models;
public class Contact
{
#region Properties
public int ContactID { get; set; }
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }
[BsonElement("firstname")]
public string? Firstname { get; set; }
[BsonElement("lastname")]
public string? Lastname { get; set; }
[BsonElement("phonenumber")]
public string? PhoneNumber { get; set; }
[BsonElement("date_created")]
public DateTime DateCreated { get; set; }
public int UserID { get; set; }
// [BsonRepresentation(BsonType.ObjectId)]
[BsonElement("user_id")]
public string? UserID { get; set; }
#endregion
}