예제 #1
0
 public IActionResult DeleteConfirmed(int id)
 {
     try
     {
         var e = _eventMapper.Find(id);
         _eventMapper.Delete(e);
         return(RedirectToAction(nameof(Admin)));
     }
     catch
     {
         return(View());
     }
 }