Exemplo n.º 1
0
 private void Delete()
 {
     try
     {
         _experience.Delete(); // TODO: animation
         Deleted?.Invoke();
         NiwradMenu.instance.ShowNotification($"Experience {_experience.Name} has been deleted !");
     }
     catch (DirectoryNotFoundException)
     {
         NiwradMenu.instance.ShowNotification($"Failed to delete {_experience.Name} !");
     }
 }
Exemplo n.º 2
0
 public IActionResult DeleteConfirmed(int id)
 {
     Experience.Delete(id);
     return(RedirectToAction("Index"));
 }