示例#1
0
        public void DeleteWagon()
        {
            EmptyLists();

            wagonRepository = new WagonRepository(context);
            Wagon wagon = new Wagon(1, "naam", 13, 25);

            Assert.True(wagonRepository.DeleteWagon(wagon.Id));
        }
示例#2
0
 public IActionResult Delete(int id)
 {
     repo.DeleteWagon(id);
     return(RedirectToAction(nameof(Index)));
 }