public UpdatePersonDto(PersonDetailDto detail)
 {
     Id         = detail.Id;
     GivenName  = detail.GivenName;
     Surname    = detail.Surname;
     TemplateId = detail.TemplateId;
     Email      = detail.Email;
     ImageUrl   = detail.ImageUrl;
     PersonExtendedPropertyList =
         new List <WriteEntityExtendedPropertyDto>(detail.PersonExtendedPropertyList);
 }
 public static UpdatePersonDto FromPersonDetail(PersonDetailDto detail)
 {
     return(new UpdatePersonDto
     {
         Email = detail.Email,
         GivenName = detail.GivenName,
         PersonExtendedPropertyList =
             new List <WriteEntityExtendedPropertyDto>(detail.PersonExtendedPropertyList),
         Id = detail.Id,
         Surname = detail.Surname,
         TemplateId = detail.TemplateId,
         ImageUrl = detail.ImageUrl
     });
 }
        public PersonDetailDto(PersonDetailDto dto)
        {
            if (dto == null)
            {
                return;
            }

            var type       = typeof(PersonDetailDto);
            var properties = type.GetTypeInfo().DeclaredProperties;

            foreach (var property in properties)
            {
                var value = property.GetValue(dto);
                property.SetValue(this, value);
            }
        }
 public UpdatePersonTagDto(PersonDetailDto detail)
 {
     Id            = detail.Id;
     PersonTagList = new List <WriteTagDto>(detail.PersonTagList);
 }