Costomers och Movies fungerar med validation

This commit is contained in:
2019-01-23 23:18:48 +01:00
parent 3e501b29d0
commit 93e8535819
10 changed files with 267 additions and 23 deletions

View File

@ -41,6 +41,7 @@ namespace Vidly.Controllers
}
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Save(Customer customer)
{
if (!ModelState.IsValid)