Exemplo n.º 1
0
        public void DeletePerron()
        {
            EmptyLists();

            stationVerbindingRepository = new PerronRepository(context);
            Perron perron = new Perron(1, "naam", false);

            Assert.True(stationVerbindingRepository.DeletePerron(perron.Id));
        }
Exemplo n.º 2
0
 public IActionResult Delete(int id)
 {
     repo.DeletePerron(id);
     return(RedirectToAction(nameof(Index)));
 }