Created
February 8, 2011 13:37
-
-
Save JorritSalverda/816451 to your computer and use it in GitHub Desktop.
mvc binding snippet #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[AcceptVerbs(HttpVerbs.Post)] | |
public ActionResult Create(BlogItem blogItem) | |
{ | |
if (ModelState.IsValid) | |
{ | |
... | |
return RedirectToAction("OtherAction"); | |
} | |
return View(blogItem); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment