I've created a Asp.net MVC web application that has a SQL Server attached to it. I would like to update the database on an action (in this case a physical card swipe). I have a microcontroller that stores the identification number and then can connect via tcp to the site.
What is the best approach for allowing the microcontroller to add data to the database attached to my MVC website? I was considering setting up an API similar to the one described here, and just posting to the website constantly. Is this the best approach to the problem?
Thanks!