From 7596eb7d3fd5690e4f4aa142a55165643bba2604 Mon Sep 17 00:00:00 2001 From: "Chris.Watts90@outlook.com" Date: Fri, 3 Feb 2017 12:39:38 +0000 Subject: [PATCH] #4 Added IsContractor flag to the UserIdentity and User Object, the Api will now relate that status to the output object. note, notimplemented in the UI yet to control this flag. --- DataCenter_Windows/WindowsDataCenter/Interfaces/User.cs | 2 +- .../WindowsDataCenter/SQLiteRepository/SQLiteRepository.cs | 3 ++- .../WindowsDataCenter/SQLiteRepository/UserIdentity.cs | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DataCenter_Windows/WindowsDataCenter/Interfaces/User.cs b/DataCenter_Windows/WindowsDataCenter/Interfaces/User.cs index 96e2a0e..2fca02f 100644 --- a/DataCenter_Windows/WindowsDataCenter/Interfaces/User.cs +++ b/DataCenter_Windows/WindowsDataCenter/Interfaces/User.cs @@ -14,7 +14,7 @@ namespace Interfaces public string FirstName { get; set; } public string LastName { get; set; } public float HoursPerWeek { get; set; } - + public bool IsContractor { get; set; } public int AssociatedIdentifierCount { get { return AssociatedIdentifiers.Count; } diff --git a/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/SQLiteRepository.cs b/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/SQLiteRepository.cs index 68fadbf..4afd5f6 100644 --- a/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/SQLiteRepository.cs +++ b/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/SQLiteRepository.cs @@ -236,7 +236,8 @@ namespace SQLiteRepository UserId = user.Id, FirstName = user.FirstName, LastName = user.LastName, - HoursPerWeek = user.HoursPerWeek + HoursPerWeek = user.HoursPerWeek, + IsContractor = user.IsContractor }; } } diff --git a/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/UserIdentity.cs b/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/UserIdentity.cs index a65f68c..f2bda08 100644 --- a/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/UserIdentity.cs +++ b/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/UserIdentity.cs @@ -9,5 +9,6 @@ namespace SQLiteRepository public string FirstName { get; set; } public string LastName { get; set; } public float HoursPerWeek { get; set; } + public bool IsContractor { get; set; } } } \ No newline at end of file