internal static importHouseUORequestApartmentHouseApartmentHouseToCreate ApartmentHouseCreate(HouseDto dto)
        {
            var value = new importHouseUORequestApartmentHouseApartmentHouseToCreate {
                MinFloorCountSpecified = true,
                MinFloorCount          = (sbyte)dto.MinFloorCount,
                UndergroundFloorCount  = dto.UndergroundFloorCount,
                BasicCharacteristicts  = (ApartmentHouseUOTypeBasicCharacteristicts)dto.BasicCharacteristicts(),
                TransportGUID          = dto.TransportGuid
            };

            value.BasicCharacteristicts.ItemsElementName = new ItemsChoiceType5[] { ItemsChoiceType5.No_RSO_GKN_EGRP_Registered };
            value.BasicCharacteristicts.Items            = new object[] { true };

            if (!string.IsNullOrEmpty(dto.CadastrNumber))
            {
                value.BasicCharacteristicts.ItemsElementName = new ItemsChoiceType5[] { ItemsChoiceType5.CadastralNumber };
                value.BasicCharacteristicts.Items            = new object[] { dto.CadastrNumber };
            }
            else
            {
                value.BasicCharacteristicts.ItemsElementName = new ItemsChoiceType5[] { ItemsChoiceType5.No_RSO_GKN_EGRP_Registered };
                value.BasicCharacteristicts.Items            = new object[] { true };
            }
            return(value);
        }
        internal static importHouseUORequestLivingHouseLivingHouseToCreate LivingHouseToCreate(HouseDto dto)
        {
            var value = new importHouseUORequestLivingHouseLivingHouseToCreate {
                BasicCharacteristicts = dto.BasicCharacteristicts(),
                TransportGUID         = dto.TransportGuid,
                HasBlocksSpecified    = false,
                HasMultipleHousesWithSameAddressSpecified = false
            };

            value.BasicCharacteristicts.ItemsElementName = new ItemsChoiceType5[] { ItemsChoiceType5.No_RSO_GKN_EGRP_Registered };
            value.BasicCharacteristicts.Items            = new object[] { true };

            if (!string.IsNullOrEmpty(dto.CadastrNumber))
            {
                value.BasicCharacteristicts.ItemsElementName = new ItemsChoiceType5[] { ItemsChoiceType5.CadastralNumber };
                value.BasicCharacteristicts.Items            = new object[] { dto.CadastrNumber };
            }
            else
            {
                value.BasicCharacteristicts.ItemsElementName = new ItemsChoiceType5[] { ItemsChoiceType5.No_RSO_GKN_EGRP_Registered };
                value.BasicCharacteristicts.Items            = new object[] { true };
            }

            return(value);
        }