예제 #1
0
        public void DeletePerron()
        {
            EmptyLists();

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

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