Добавьте файлы проекта.
This commit is contained in:
16
PlaylistShared.Api/Mapping/AppMappingProfile.cs
Normal file
16
PlaylistShared.Api/Mapping/AppMappingProfile.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using AutoMapper;
|
||||
using PlaylistShared.Api.Entities;
|
||||
using PlaylistShared.Shared.Models;
|
||||
|
||||
namespace PlaylistShared.Api.Mapping;
|
||||
|
||||
public class AppMappingProfile : Profile
|
||||
{
|
||||
public AppMappingProfile()
|
||||
{
|
||||
CreateMap<SharedPlaylistEntity, SharedPlaylistDto>()
|
||||
.ForMember(dest => dest.Creator, opt => opt.MapFrom(src => src.Creator));
|
||||
CreateMap<ApplicationUser, ApplicationUserDto>();
|
||||
CreateMap<TrackAdditionLogEntity, TrackAdditionLogDto>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user