public async Task <IActionResult> Create([Bind("checkinId,checkinLicensePlate,checkinTime")] CarCheckin carCheckin) { if (ModelState.IsValid) { _context.Add(carCheckin); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(carCheckin)); }