public IActionResult Edit(Maintenance maintenance) { if (ModelState.IsValid) { _repository.UpdateMaintenancePutEntire(maintenance, maintenance.Id); return(RedirectToAction("Detail", new { id = maintenance.VehicleId })); } return(View(maintenance)); }