public void DeleteWagon() { EmptyLists(); wagonRepository = new WagonRepository(context); Wagon wagon = new Wagon(1, "naam", 13, 25); Assert.True(wagonRepository.DeleteWagon(wagon.Id)); }
public IActionResult Delete(int id) { repo.DeleteWagon(id); return(RedirectToAction(nameof(Index))); }