22 lines
526 B
C#
22 lines
526 B
C#
namespace WebApi_data_value.Models;
|
|
|
|
using WebApi_data_value.Entities;
|
|
|
|
public class AuthenticateResponse
|
|
{
|
|
public int Id { get; set; }
|
|
public string? FirstName { get; set; }
|
|
public string? LastName { get; set; }
|
|
public string? Username { get; set; }
|
|
public string Token { get; set; }
|
|
|
|
|
|
public AuthenticateResponse(User user, string token)
|
|
{
|
|
Id = user.id;
|
|
FirstName = user.firstname;
|
|
LastName = user.lastname;
|
|
Username = user.username;
|
|
Token = token;
|
|
}
|
|
} |