class MarriageRegnService {

	@Transactional
	public void create(MarriageRegnRequest marriageRegnRequest) {
		MarriageRegn marriageRegn = marriageRegnRequest.getMarriageRegn();
		marriageRegnRepository.save(marriageRegn);
		marryingPersonRepository.save(marriageRegn.getBridegroom(), marriageRegn.getTenantId());
		marryingPersonRepository.save(marriageRegn.getBride(), marriageRegn.getTenantId());

	}

}