public void DeletePerron() { EmptyLists(); stationVerbindingRepository = new PerronRepository(context); Perron perron = new Perron(1, "naam", false); Assert.True(stationVerbindingRepository.DeletePerron(perron.Id)); }
public IActionResult Delete(int id) { repo.DeletePerron(id); return(RedirectToAction(nameof(Index))); }