# GET and POST Actions

A search form sends a GET request with a query string; a form that saves data sends a POST. Pair a GET action that shows the form with a POST action that saves it, redirect afterward, and protect it with an anti-forgery token.

![Cheat sheet: GET and POST Actions](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/c5bd34a2af60484682d034c8335253e5.webp)

- Category: ASP.NET Core
- Level: Journeyman
- Tags: Anti-Forgery Token, aspnet-core, c-sharp, Form, GET, HTTP Method, POST, Post-Redirect-Get, razor
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/mvc-forms-get-and-post-actions-cheat-sheet
