Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static CustomerDto Map(Customer customerEntity)
- {
- var config = new MapperConfiguration(cfg => cfg.CreateMap<Customer, CustomerDto>());
- var mapper = new Mapper(config);
- return mapper.Map<CustomerDto>(customerEntity);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement