/// <summary>
        /// Maps a dto to an entity.
        /// </summary>
        /// <param name="phoneDTO">phoneDTO.</param>
        /// <returns>Phone.</returns>
        public static Persistence.Model.Phone DTOToEntity(PhoneDTO phoneDTO)
        {
            if (phoneDTO == null)
            {
                return(null);
            }

            Phone phone = new Persistence.Model.Phone()
            {
                Number = phoneDTO.Number
            };

            return(phone);
        }
        /// <summary>
        /// Maps an entity to a dto.
        /// </summary>
        /// <param name="phone">Persistence phone.</param>
        /// <returns>PhoneDTO.</returns>
        public static PhoneDTO EntityToDTO(Persistence.Model.Phone phone)
        {
            if (phone == null)
            {
                return(null);
            }

            PhoneDTO phoneDTO = new PhoneDTO()
            {
                Id     = phone.Id,
                Number = phone.Number
            };

            return(phoneDTO);
        }