using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace EnVisage.Models.Cache { public class User { public Guid Id { get; set; } public bool PreferredResourceAllocation { get; set; } public bool PreferredTotalsDisplaying { get; set; } public bool ShowAutomaticViews { get; set; } public List Roles { get; set; } public DateTime? LoginDate { get; set; } public DateTime? LastLoginDate { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string DisplayName { get { var result = string.Empty; if (!string.IsNullOrWhiteSpace(FirstName)) { result += FirstName; } else { result = UserName; } return result; } } public string Email { get; set; } public string UserName { get; set; } } }