private async void ExecuteDeleteFace(string mPersonGroupId, string mPersonId, string mFaceId) { string result = string.Empty; mProgressDialog.Show(); AddLog("Request: Deleting face " + mFaceId); try { var faceClient = new FaceClient(); mProgressDialog.SetMessage("Deleting selected faces..."); SetInfo("Deleting selected faces..."); UUID _personId = UUID.FromString(mPersonId); UUID _faceId = UUID.FromString(mFaceId); await faceClient.DeletePersonFace(mPersonGroupId, _personId, _faceId); result = mFaceId; } catch (Java.Lang.Exception e) { result = null; AddLog(e.Message); } RunOnUiThread(() => { mProgressDialog.Dismiss(); if (result != null) { SetInfo("Face " + result + " successfully deleted"); AddLog("Response: Success. Deleting face " + result + " succeed"); } }); }