Let's say I have a "Vote Up" button similar to what you see on StackOverflow. When the user clicks it I need to update the vote count in the database and return the new value to the UI. Currently I am achieving this by having an action called "VoteUp" on the "PostsController" which takes an "int postID" as a parameter.
public PostsController : Controller
public ActionResult VoteUp(int postId)
//Increment Post Vote Count
return Json(voteCount); //Return just the new vote count as a JSon result.
I'm then calling this method via ajax by invoking the url "http://mydomain.com/posts/voteUp?postId=5". I then return an JSon ActionResult with the new value to update the UI with.