FlexitimeTracker/DataCenter_Windows/WindowsDataCenter/Interfaces/User.cs
Chris.Watts90@outlook.com 4ac6b2475b Added initialisation for User object to set First and Last names to an empty string.
removed line to check if user id is valid, as when creating a user id, it will be -1....
2017-02-03 12:21:21 +00:00

25 lines
623 B
C#

using System.Collections.Generic;
namespace Interfaces
{
public class User
{
public User()
{
AssociatedIdentifiers = new List<Identifier>();
FirstName = "";
LastName = "";
}
public int UserId { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public float HoursPerWeek { get; set; }
public int AssociatedIdentifierCount
{
get { return AssociatedIdentifiers.Count; }
}
public List<Identifier> AssociatedIdentifiers { get; set; }
}
}