PlayerManagement/Application/Profiles/CustomEventCategoryProfile.cs
Tomasi - Developing 711fb4adaa v 0.9.0
2025-04-23 16:03:41 +02:00

18 lines
544 B
C#

using Application.DataTransferObjects.CustomEventCategory;
using AutoMapper;
using Database.Entities;
namespace Application.Profiles;
public class CustomEventCategoryProfile : Profile
{
public CustomEventCategoryProfile()
{
CreateMap<CustomEventCategory, CustomEventCategoryDto>();
CreateMap<CreateCustomEventCategoryDto, CustomEventCategory>()
.ForMember(des => des.Id, opt => opt.MapFrom(src => Guid.CreateVersion7()));
CreateMap<UpdateCustomEventCategoryDto, CustomEventCategory>();
}
}