public IActionResult Details(int id) { var samochod = _samochodRepository.PobierzSamochodId(id); if (samochod == null) { return(NotFound()); } return(View(samochod)); }
public IActionResult Szczegoly(int id) { var samochod = _samochodRepository.PobierzSamochodId(id); if (samochod != null) { return(View(samochod)); } else { return(NotFound()); } }