add new RoleType and validationPoint to AdminUser
This commit is contained in:
@@ -56,6 +56,8 @@ namespace CarParkValidationAPI.Models
|
||||
public bool Active { get; set; }
|
||||
|
||||
public AdminRole RoleType { get; set; }
|
||||
|
||||
public int? ValidationPointID { get; set; }
|
||||
public DateTime? LastModified { get; set; }
|
||||
public string? LastModifiedId { get; set; }
|
||||
#endregion
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace CarParkValidationAPI.Models
|
||||
public string Email { get; set; }
|
||||
public string Username { get; set; }
|
||||
public AdminRole Role { get; set; }
|
||||
public int ValidationPointId { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public string PasswordHash { get; set; }
|
||||
|
||||
@@ -9,6 +9,7 @@ namespace CarParkValidationAPI.Models.Users
|
||||
public string LastName { get; set; }
|
||||
public string Username { get; set; }
|
||||
public AdminRole Role { get; set; }
|
||||
public int ValidationPointId { get; set; }
|
||||
public string Token { get; set; }
|
||||
public string Email { get; set; }
|
||||
public AuthenticateResponse(User user, string token)
|
||||
@@ -20,6 +21,7 @@ namespace CarParkValidationAPI.Models.Users
|
||||
Email = user.Email;
|
||||
Role = user.Role;
|
||||
Token = token;
|
||||
ValidationPointId = user.ValidationPointId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user