I have a use case like I have a school having two branches in two different cities like say one branch is in taxas and one is in dallas , Now I would like to have an API which would work two ways , Like when some student comes to get register him/her self in DALLAS then It will first check if the statudent ID already exists in TAXAS branch then it does not allow to enroll him in Dallas , and if someone come to TAXAS but if that student already exists in DALLAS then it should not allow him to enroll as it is two way process how I can achieve it