22 lines
489 B
C#
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();
|
|
}
|
|
}
|