コード例 #1
0
            public static UserViewModel FromModel(User model)
            {
                if (model == null || model.Contact == null)
                {
                    return(null);
                }

                return(new UserViewModel
                {
                    Id = model.Id,
                    Contact = ContactViewModel.FromModel(model.Contact)
                });
            }