It may seem awful at first, but you can really consider coding business rules in javascript.
There are javascript engines available both on the Java platform and on the .NET platform. Thus, by hosting a (different) javascript engine on both the server (java) and the client (C #), they can execute the same javascript to enforce business rules.
Think of it as your choice of business rules. This is not a bad choice for the task, as it is concise, flexible and well-known.
I once did something similar to set up flexible rules for playing a java game. Javascript engines are surprisingly easy to set up, and these days they are also becoming very fast.
source share