public static async void addFaceToPerson(string base64, string GUID) { var personId = dictionary[GUID].PersonId; var result = Task.Run(async() => { return(await Globals.faceServiceClient.AddPersonFaceAsync(Globals.personGroupId, personId, ImageTools.Base64ToImage(base64))); }).Result; }