class MarriageRegnService {

	@Transactional
	public void update(MarriageRegnRequest marriageRegnRequest) {
		MarriageRegn marriageRegn = marriageRegnRequest.getMarriageRegn();
		marriageRegnRepository.update(marriageRegn);
		marryingPersonRepository.update(marriageRegn.getBridegroom(), marriageRegn.getTenantId());
		marryingPersonRepository.update(marriageRegn.getBride(), marriageRegn.getTenantId());
		// List<String> applicationNosList =
		// marriageCertRepository.getApplicationNos(marriageRegn.getTenantId());
		if (marriageRegn.getStatus().toString().equals("REGISTERED"))
			marriageCertRepository.insert(marriageRegn);

	}

}