AspNetCore.Docs/aspnet/whitepapers/mvc3-release-notes/samples/sample24.cs

5 lines
123 B
C#

[HttpPost]
[ValidateInput(false)]
public ActionResult Edit(BlogPostViewModel post) {
// Save the post in the database
}