main
 1using System;
 2using solidware.financials.messages;
 3using solidware.financials.windows.ui.model;
 4using utility;
 5
 6namespace solidware.financials.windows.ui.bootstrappers
 7{
 8    public class ConfigureMappings : NeedStartup
 9    {
10        public void run()
11        {
12            Map<AddedNewFamilyMember, PersonDetails>(x =>
13            {
14                return new PersonDetails
15                {
16                    id = x.id,
17                    first_name = x.first_name,
18                    last_name = x.last_name,
19                };
20            });
21        }
22
23        void Map<Input, Output>(Func<Input, Output> conversion)
24        {
25            MapperRegistery.Register(conversion);
26        }
27    }
28}