Updated model and Repository class
This commit is contained in:
+2
-2
@@ -9,8 +9,8 @@ namespace TextSender_API.Models;
|
||||
public class User
|
||||
{
|
||||
#region Properties
|
||||
[BsonElement("_id")]
|
||||
public ObjectId UserID { get; set; }
|
||||
// [BsonElement("_id")]
|
||||
public ObjectId Id { get; set; }
|
||||
[BsonElement("firstname")]
|
||||
public string? Firstname { get; set; }
|
||||
[BsonElement("lastname")]
|
||||
|
||||
Reference in New Issue
Block a user