19 lines
504 B
C#
19 lines
504 B
C#
using AutoMapper;
|
|
using GroupService.WebApi.Application.Dtos;
|
|
|
|
namespace GroupService.WebApi.Application.Group
|
|
{
|
|
public class GroupMapperConfig : Profile
|
|
{
|
|
public GroupMapperConfig()
|
|
{
|
|
CreateMap<Domain.Entities.Group, GroupResponse>()
|
|
.ForMember(dest => dest.Created, opt => opt.MapFrom(src => src.CreationTime))
|
|
.ForMember(dest => dest.Updated, opt => opt.MapFrom(src => src.ModificationTime))
|
|
;
|
|
|
|
|
|
}
|
|
}
|
|
}
|