main
 1using AutoMapper;
 2using presentation.windows.common;
 3using presentation.windows.common.messages;
 4using presentation.windows.presenters;
 5
 6namespace presentation.windows.bootstrappers
 7{
 8    public class ConfigureMappings : NeedStartup
 9    {
10        public void run()
11        {
12            Mapper.CreateMap<AddedNewFamilyMember, PersonDetails>()
13                .ConvertUsing(x =>
14                {
15                    return new PersonDetails
16                           {
17                               id = x.id,
18                               first_name = x.first_name,
19                               last_name = x.last_name,
20                           };
21                });
22        }
23    }
24}