コード例 #1
0
        public OrganizationContactPersonDTO ToDTO()
        {
            OrganizationContactPersonDTO dto = new OrganizationContactPersonDTO()
            {
                DateOfBirth    = this.DateOfBirth,
                FirstName      = this.FirstName,
                Email          = this.Email,
                Id             = this.Id,
                LastName       = this.LastName,
                OrganizationId = this.OrganizationId,
                Position       = this.Position,
                SecondName     = this.SecondName,
                OrganizationContactPersonContact = this.OrganizationContactPersonContact == null ? null : this.OrganizationContactPersonContact.Select(c => c.ToDTO()).ToList(),
                // AspNetUserId = this.AspNetUserId
            };

            return(dto);
        }
コード例 #2
0
        public OrganizationContactPersonDTO ToDTO()
        {
            OrganizationContactPersonDTO dto = new OrganizationContactPersonDTO()
            {
                DateOfBirth    = this.DateOfBirth,
                FirstName      = this.FirstName,
                Email          = this.Email,
                Id             = this.Id,
                LastName       = this.LastName,
                OrganizationId = this.OrganizationId,
                Position       = this.Position,
                SecondName     = this.SecondName,
                IsRegistered   = this.IsRegistered,
                UserName       = this.UserName,
                OrganizationContactPersonContact = this.OrganizationContactPersonContacts == null ? null : this.OrganizationContactPersonContacts.Select(c => c.ToDTO()).ToList()
            };

            return(dto);
        }