//[HttpPost]
 //[ValidateAntiForgeryToken]
 public ActionResult Reciept(RecieptViewModel checkOutVehicle)
 {
     if (ModelState.IsValid)
     {
         return(View(checkOutVehicle));
     }
     return(RedirectToAction("Index"));
 }
        public ActionResult DeleteConfirmed(int id)
        {
            ParkedVehicle parkedVehicle = db.ParkedVehicles.Find(id);

            db.ParkedVehicles.Remove(parkedVehicle);
            db.SaveChanges();
            RecieptViewModel CheckOutVehicle = new RecieptViewModel
            {
                Id        = parkedVehicle.Id,
                Type      = parkedVehicle.Type,
                RegNr     = parkedVehicle.RegNr,
                TimeStamp = parkedVehicle.TimeStamp,
            };

            return(RedirectToAction("Reciept", CheckOutVehicle));
        }