public static AlienResult ConvertToResult(
            Alien alien,
            ContactResult contactResult,
            PassportResult passportResult,
            OrganizationResult organizationResult,
            StateRegistrationResult stateRegistrationResult)
        {
            Contract.Argument.IsNotNull(alien, nameof(alien));
            Contract.Argument.IsNotNull(contactResult, nameof(contactResult));
            Contract.Argument.IsNotNull(passportResult, nameof(passportResult));
            Contract.Argument.IsNotNull(organizationResult, nameof(organizationResult));
            Contract.Argument.IsNotNull(stateRegistrationResult, nameof(stateRegistrationResult));

            return(new AlienResult
            {
                Id = alien.Id,
                InvitationId = alien.InvitationId,
                Contact = contactResult,
                Passport = passportResult,
                Organization = organizationResult,
                StateRegistration = stateRegistrationResult,
                Position = alien.Position,
                WorkPlace = alien.WorkPlace,
                WorkAddress = alien.WorkAddress,
                StayAddress = alien.StayAddress
            });
        }
        public static ForeignParticipantResult ConvertToResult(
            ForeignParticipant foreignParticipant,
            PassportResult passportResult)
        {
            Contract.Argument.IsNotNull(foreignParticipant, nameof(foreignParticipant));
            Contract.Argument.IsNotNull(passportResult, nameof(passportResult));

            return(new ForeignParticipantResult
            {
                Id = foreignParticipant.Id,
                AlienId = foreignParticipant.AlienId,
                InvitationId = foreignParticipant.InvitationId,
                Passport = passportResult
            });
        }
        public static EmployeeResult ConvertToResult(
            Employee employee,
            ContactResult contactResult,
            PassportResult passportResult,
            OrganizationResult organizationResult,
            StateRegistrationResult stateRegistrationResult)
        {
            Contract.Argument.IsNotNull(employee, nameof(employee));

            return(new EmployeeResult
            {
                Id = employee.Id,
                Contact = contactResult,
                Passport = passportResult,
                Organization = organizationResult,
                StateRegistration = stateRegistrationResult,
                ManagerId = employee.ManagerId,
                AcademicDegree = employee.AcademicDegree,
                AcademicRank = employee.AcademicRank,
                Education = employee.Education,
                Position = employee.Position,
                WorkPlace = employee.WorkPlace
            });
        }