Yes, it sounds like you’ve got it about right.
Note, however, that if you change postId to Id, then you could call with a URL like:
http://example.com/posts/voteUp/5
(With the default routing.) It’s a question of personal preference.
Yes, it sounds like you’ve got it about right.
Note, however, that if you change postId to Id, then you could call with a URL like:
http://example.com/posts/voteUp/5
(With the default routing.) It’s a question of personal preference.