fixed registration crash

This commit is contained in:
ani_konarcheva@abv.bg
2022-04-08 18:35:17 +03:00
parent 547c6e8774
commit 6ab09ad841
9 changed files with 14 additions and 158 deletions

View File

@@ -54,6 +54,7 @@ namespace WebApp.Controllers
// For more details, see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,CarId,StartDate,EndDate,UserId")] Rents rents)
{
if (ModelState.IsValid)