Beispiel #1
0
        public DestUser Convert(SrcUser srcUser)
        {
            var destUser = new DestUser {
                AdditionalProperties = new Dictionary <string, object>()
            };

            convert(srcUser, destUser, false);
            return(destUser);
        }
Beispiel #2
0
        public SrcUser Convert(DestUser destUser)
        {
            var srcUser = new SrcUser
            {
                AdditionalProperties = new Dictionary <string, object>(),
                Phones = new List <SrcUserPhone>(),
                Emails = new List <SrcUserEmail>()
            };

            convert(destUser, srcUser, true);
            return(srcUser);
        }