Addressing build warnings

This commit is contained in:
kdeng00
2023-09-29 19:08:34 -04:00
parent 145eea8e92
commit 192208fe2a
5 changed files with 9 additions and 12 deletions
+3 -3
View File
@@ -6,9 +6,9 @@ public class Contact
{
#region Properties
public int ContactID { get; set; }
public string Firstname { get; set; }
public string Lastname { get; set; }
public string PhoneNumber { get; set; }
public string? Firstname { get; set; }
public string? Lastname { get; set; }
public string? PhoneNumber { get; set; }
public DateTime DateCreated { get; set; }
public int UserID { get; set; }
#endregion
+2 -2
View File
@@ -6,8 +6,8 @@ public class Text
{
#region Properties
public int TextID { get; set; }
public string Subject { get; set; }
public string Message { get; set; }
public string? Subject { get; set; }
public string? Message { get; set; }
public int UserID { get; set; }
public DateTime DateCreated { get; set; }
#endregion
+2 -2
View File
@@ -6,8 +6,8 @@ public class TextQueue
{
#region Properties
public int TextQueueID { get; set; }
public string Status { get; set; }
public string ContactPhoneNumber { get; set; }
public string? Status { get; set; }
public string? ContactPhoneNumber { get; set; }
public int TextID { get; set; }
public int UserID { get; set; }
public DateTime DateCreated { get; set; }
+1 -1
View File
@@ -1,5 +1,5 @@
using TextSender_API.Repositories;
namespace TextSender_API.Repositories;
public class BaseRepository
{
+1 -4
View File
@@ -1,6 +1,3 @@
using System;
using MongoDB.Bson;
using MongoDB.Driver;
using TextSender_API.Models;
@@ -100,7 +97,7 @@ public class SaltRepository : BaseRepository
public Salt Retrieve(string userId)
{
return this._bookCollection.Find(s => s.UserId.Equals(userId)).FirstOrDefault();
return this._bookCollection.Find(s => s.UserId!.Equals(userId)).FirstOrDefault();
}
public void Update(Salt salt)