Completed cars

This commit is contained in:
ani_konarcheva@abv.bg
2022-04-06 19:27:11 +03:00
parent 1dc0aa3682
commit 6f246bff8b
5 changed files with 10 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ namespace WebApp.Controllers
// For more details, see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,Brand,Model,Year,CountPassengerSeats,Description,PriceForDay")] Car car)
public async Task<IActionResult> Create([Bind("Id, Brand, Model, Year, CountPassengerSeats, Description, PriceForDay")] Car car)
{
if (ModelState.IsValid)
{
@@ -90,7 +90,7 @@ namespace WebApp.Controllers
// For more details, see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,Brand,Model,Year,CountPassengerSeats,Description,PriceForDay")] Car car)
public async Task<IActionResult> Edit(int id, [Bind("Id, Brand, Model, Year, CountPassengerSeats, Description, PriceForDay")] Car car)
{
if (id != car.Id)
{