public async Task <ActionResult> UploadImage(ImageData[] imageData)
        {
            try
            {
                var imagePaths = SaveImages(imageData);
                FaceRecognizerHelper.FaceApiKey      = ConfigurationManager.AppSettings["FaceApiKey"];
                FaceRecognizerHelper.FaceApiEndpoint = ConfigurationManager.AppSettings["FaceApiEndpoint"];
                FaceRecognizerHelper faceHelper = FaceRecognizerHelper.InitializeService();
                await faceHelper.TainImagesAsync(User.Identity.Name, imagePaths);

                return(Json(true));
            }
            catch (Exception ex)
            {
                return(new HttpStatusCodeResult(500, "Unable to save image."));
            }
        }