In the table of cars, add a number of fields that are not required and can not be entered in the table. But I have encountered the following error this method or property cannot be called on null values
<pre> var cars = await DbContext.Cars.ToListAsync(); cars.Insert(0, new Cars { CarTitle = "", Id = -1 }); ViewData["CarId"] = new SelectList(cars, "Id", "CarTitle");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)