Api/Netina.Domain/Entities/Users/NewsletterMember.cs

21 lines
806 B
C#

namespace Netina.Domain.Entities.Users;
[AdaptTwoWays("[name]LDto", IgnoreAttributes = [typeof(AdaptIgnoreAttribute)], MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[AdaptTwoWays("[name]SDto", IgnoreAttributes = [typeof(AdaptIgnoreAttribute)], MapType = MapType.Map | MapType.MapToTarget)]
[AdaptTo("[name]SDto", IgnoreAttributes = [typeof(AdaptIgnoreAttribute)], MapType = MapType.Projection)]
[GenerateMapper]
public partial class NewsletterMember : ApiEntity
{
public NewsletterMember()
{
}
public NewsletterMember(string phoneNumber, string email)
{
PhoneNumber = phoneNumber;
Email = email;
}
public string PhoneNumber { get; internal set; } = string.Empty;
public string Email { get; internal set; } = string.Empty;
}