Exemplo n.º 1
0
 public IActionResult Create(CarsCreateVM car)
 {
     if (ModelState.IsValid)
     {
         context.AddCar(car);
         return(RedirectToAction(nameof(Index)));
     }
     return(View());
 }