mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 09:12:20 +00:00
18 lines
544 B
C#
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>();
|
|
}
|
|
} |