Share business logic in asp.net (c#) and android (java)
<p>I'm working on a project that has a website (asp.net c#) and android app (java) that share some common functionality.  Currently when they need to use the same business logic the android makes a call to the website and gets the results.  We've had a request for the android to work "offline", so it would need to perform that business logic without hitting the website.  Are there any ways to do that?</p>

<p>The only thing we've thought of so far are using javascript, as a node.js server for asp.net to hit and rhinoscript to include in the java.  This will work, but I was hoping for a less complex (not having to run node.js and .net servers).</p>

<p>An example of the logic needed is passing in a couple of products and calculating discounts, taxes, etc to return the total price.  It's a bit more complex than that, but not too much.</p>
