예제 #1
0
        public Organisation MapToOrganisationDetailsDto(OrganisationDocument organisation)
        {
            if (organisation == null)
            {
                return(null);
            }

            return(new Organisation
            {
                Id = organisation.EpaOrganisationIdentifier,
                Name = organisation.EpaOrganisation,
                Email = organisation.Email,
                Phone = organisation.Phone,
                Address = new Address
                {
                    Primary = organisation.Address.Primary,
                    Secondary = organisation.Address.Secondary,
                    Street = organisation.Address.Street,
                    Town = organisation.Address.Town,
                    Postcode = organisation.Address.Postcode
                },
                //Type = organisation.OrganisationType,
                Website = organisation.WebsiteLink
            });
        }
예제 #2
0
 public OrganisationSummary MapToOrganisationDto(OrganisationDocument organisation)
 {
     return(new OrganisationSummary
     {
         Id = organisation.EpaOrganisationIdentifier,
         Name = organisation.EpaOrganisation
     });
 }