def save_apartment(self, apartment_dto, send_event=True):
        # type: (ApartmentDTO, bool) -> ApartmentDTO
        self._check_rebus_ids(apartment_dto)
        apartment_orm = ApartmentMapper.dto_to_orm(apartment_dto)
        apartment_orm.save()
        if send_event:
            ApartmentController.send_config_change_event('save')
        return ApartmentMapper.orm_to_dto(apartment_orm)