public void DeletePerson(string groupId, Guid personId) { try { FaceService.DeletePerson(groupId, personId); } catch { } }
private async Task OnDelete() { var isSuccess = await _faceService.DeletePerson(User.Id); if (isSuccess) { _dispatcher.Invoke(async() => await _dialogService.ShowMessage("Utilisateur supprimé", "Information")); } else { _dispatcher.Invoke(async() => await _dialogService.ShowMessage("Erreur lors de la suppression. Réessayez.", "Alerte")); } }