mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 17:22:21 +00:00
18 lines
425 B
C#
18 lines
425 B
C#
using Application.DataTransferObjects.Player;
|
|
using AutoMapper;
|
|
using Database.Entities;
|
|
|
|
namespace Application.Profiles;
|
|
|
|
public class PlayerProfile : Profile
|
|
{
|
|
public PlayerProfile()
|
|
{
|
|
CreateMap<Player, PlayerDto>()
|
|
.ForMember(des => des.RankName, opt => opt.MapFrom(src => src.Rank.Name));
|
|
|
|
CreateMap<CreatePlayerDto, Player>();
|
|
|
|
CreateMap<UpdatePlayerDto, Player>();
|
|
}
|
|
} |