This web site illustrates how to use the antiforgery system to prevent CSRF attacks. The web site has an AccountsController which uses an antiforgery token to validate incoming form posts.
AccountsController