using AutoMapper;
using MyNewProjectName.Application.Mappings;
using MyNewProjectName.Domain.Entities;

namespace MyNewProjectName.Application.Features.Sample.Queries.GetSamples;

/// <summary>
/// Sample DTO
/// </summary>
public class SampleDto : IMapFrom<SampleEntity>
{
    public Guid Id { get; set; }
    public string Name { get; set; } = string.Empty;
    public string? Description { get; set; }
    public bool IsActive { get; set; }
    public DateTime CreatedAt { get; set; }

    public void Mapping(Profile profile)
    {
        profile.CreateMap<SampleEntity, SampleDto>();
    }
}
