Adding
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
using LCU.Library.Internal.IncentiveApiModels.Enums;
|
||||
|
||||
namespace LCU.Library.Internal.IncentiveApiModels.Entities
|
||||
{
|
||||
public class ApplicationUser
|
||||
{
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string[] Roles { get; set; }
|
||||
public bool IsSystem { get; set; }
|
||||
|
||||
public string UserName()
|
||||
{
|
||||
return string.IsNullOrWhiteSpace(LastName) ? Email : $"{FirstName} {LastName}";
|
||||
}
|
||||
|
||||
public UserType UserType()
|
||||
{
|
||||
return IsSystem ? Library.Internal.IncentiveApiModels.Enums.UserType.System : Library.Internal.IncentiveApiModels.Enums.UserType.Associate;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user