Пример #1
0
 private void DeleteDirector()
 {
     if (CanDeleteDirector)
     {
         if (ConfirmationHelper.ConfirmationYesNo("Voulez-vous vraiment supprimer ce élément ?", "Confirmation"))
         {
             var directorToDelete = Directors.Where(x => x.DirectorId == DirectorEdit.DirectorId).FirstOrDefault();
             if (directorToDelete != null)
             {
                 if (_directorService.DeleteDirector(directorToDelete))
                 {
                     InitListDirector();
                     directorToDelete.PropertyChanged -= Director_PropertyChanged;
                     InitCurrentDirector();
                 }
             }
         }
     }
 }