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); }
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); }