Poszukiwacz/Serwer/Serwer.Infrastructure/Mappers/AutoMapperConfig.cs

23 lines
551 B
C#
Raw Normal View History

2020-12-06 16:01:38 +01:00
using AutoMapper;
using Serwer.Core.Domain;
using Serwer.Infrastructure.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Serwer.Infrastructure.Mappers
{
public static class AutoMapperConfig
{
public static IMapper Initialize()
=> new MapperConfiguration(cfg =>
{
cfg.CreateMap<User, UserDto>();
2021-01-16 13:59:11 +01:00
cfg.CreateMap<UserHistory, UserHistoryDto>();
2020-12-06 16:01:38 +01:00
})
.CreateMapper();
}
}