// R e a d public IActionResult Detail(int id) { Maintenance maintenance = _repository.GetMaintenanceById(id); if (maintenance == null) { return(Redirect("/Vehicle/Index")); } return(View(maintenance)); }
// R e a d public IActionResult Detail(int id) { Maintenance maintenance = _repository.GetMaintenanceById(id); if (maintenance == null) { return(Redirect("/Vehicle/Index")); } return(View(maintenance)); }