Example #1
0
        public static ClientRegistrationDTO Create(Client client)
        {
            var clientRegistrationDTO =
                new ClientRegistrationDTO
            {
                ClientDemographic    = ClientDemographicDTO.CreateFromClient(client),
                ClientContactAddress = ClientContactAddressDTO.CreateFromClient(client),
                ClientProfile        = ClientProfileDTO.CreateFromClient(client),
                ClientEnrollment     = ClientEnrollmentDTO.CreateFromClient(client)
            };

            return(clientRegistrationDTO);
        }
        public static ClientRegistrationDTO Create(Client client)
        {
            var clientRegistrationDto =
                new ClientRegistrationDTO
            {
                ClientDemographic    = ClientDemographicDTO.CreateFromClient(client, client.Downloaded),
                ClientContactAddress = ClientContactAddressDTO.CreateFromClient(client, client.Downloaded),
                ClientProfile        = ClientProfileDTO.CreateFromClient(client, client.Downloaded),
                ClientEnrollment     = ClientEnrollmentDTO.CreateFromClient(client, client.Downloaded)
            };

            clientRegistrationDto.Downloaded = client.Downloaded;

            return(clientRegistrationDto);
        }