public void UpdateStation() { EmptyLists(); stationVerbindingRepository = new PerronRepository(context); Perron perron = new Perron(1, "xx", true); Assert.True(stationVerbindingRepository.UpdatePerron(perron)); }
public IActionResult Edit(PerronDetailViewModel vm) { try { Perron perron = converter.ViewModelToPerron(vm); bool succes = repo.UpdatePerron(perron); if (succes) { return(RedirectToAction("Details", new { perron.Id })); } return(View()); } catch { return(View()); } }