api/NetinaCMS.Domain/Dtos/SmallDto/ApplicationUserSDto.cs

21 lines
855 B
C#
Raw Normal View History

2024-03-24 12:35:42 +03:30
using NetinaCMS.Domain.Entities.Users;
2024-03-09 19:53:01 +03:30
2024-03-24 12:35:42 +03:30
namespace NetinaCMS.Domain.Dtos.SmallDto;
2024-03-09 19:53:01 +03:30
public class ApplicationUserSDto : BaseDto<ApplicationUserSDto, ApplicationUser>
{
public string PhoneNumber { get; set; } = string.Empty;
public string FirstName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
public DateTime BirthDate { get; set; }
public Gender Gender { get; set; }
public SignUpStatus SignUpStatus { get; set; }
public string NationalId { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string FullName => FirstName + " " + LastName;
public string RoleName { get; set; } = string.Empty;
public List<Guid> RoleIds { get; set; } = new();
public long BirthDateTimeStamp => DateTimeExtensions.DateTimeToUnixTimeStamp(BirthDate);
}