This project is read-only.

Run a service when clicking a button

Topics: Writing modules
Feb 19, 2015 at 12:31 PM
I would like to create a Controller that runs a service when I click a button on my web page.

In other words I have a input type button on my page and onclick I would like to trigger and send data to an orchard service wich will than call a webservice. I cannot call webservice directly with ajax because I don't want to expose some data.

Any ideas how I can do that?
Feb 20, 2015 at 5:08 PM
You can write a standard MVC controller (or better, an ApiController) and call it via AJAX.