Ejemplo n.º 1
0
 public ActionResult Index(CarsInfo model)
 {
     if (ModelState.IsValid)
     {
         CarsInfo carsInfo = _carRepository.AddCarToParking(model);
         SetValueToViewBags();
         carsInfo.IsParked = true;
         return(View(carsInfo));
     }
     else
     {
         return(View(model));
     }
 }