Beispiel #1
0
        public void UpdateStation()
        {
            EmptyLists();

            stationVerbindingRepository = new PerronRepository(context);
            Perron perron = new Perron(1, "xx", true);

            Assert.True(stationVerbindingRepository.UpdatePerron(perron));
        }
Beispiel #2
0
 public IActionResult Edit(PerronDetailViewModel vm)
 {
     try
     {
         Perron perron = converter.ViewModelToPerron(vm);
         bool   succes = repo.UpdatePerron(perron);
         if (succes)
         {
             return(RedirectToAction("Details", new { perron.Id }));
         }
         return(View());
     }
     catch
     {
         return(View());
     }
 }