TourIAm/TIAM.Models/Dtos/Profiles/ProfileDto.cs

28 lines
822 B
C#

using TIAM.Entities.Addresses;
using TIAM.Entities.Profiles;
namespace TIAM.Models.Dtos.Profiles;
public class ProfileDto<TAddress> : ProfileDto, IProfileDto<TAddress> where TAddress : class, IAddressDto
{
public TAddress Address { get; set; }
}
public class ProfileDto : IProfileDto //TODO: AcProfileDtoBase - J.
{
public Guid Id { get; set; }
public Guid? UserMediaId { get; set; }
public Guid AddressId { get; set; }
public string Name { get; set; }
public string? FullName => Profile.GetFullName(FirstName, LastName);
public string? FirstName { get; set; }
public string? LastName { get; set; }
//public string NickName { get; set; }
public string? EmailAddress { get; set; }
public string? Description { get; set; }
public string? ThumbnailUrl { get; set; }
}