public void DeleteVerbinding() { EmptyLists(); verbindingRepository = new VerbindingRepository(context); Verbinding verbinding = new Verbinding(1, "Andernaam", 50, new Perron(1, "naam", true), new Perron(2, "naam", true), true); Assert.True(verbindingRepository.DeleteVerbinding(verbinding.Id)); }
public IActionResult Delete(int id) { repo.DeleteVerbinding(id); return(RedirectToAction(nameof(Index))); }