Poszukiwacz/Serwer/Serwer.Infrastructure/Mappers/AutoMapperConfig.cs
2020-12-06 16:01:38 +01:00

22 lines
489 B
C#

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>();
})
.CreateMapper();
}
}