public async Task <IActionResult> Index() { string imgURL = Utility.getRootPath() + "/Resources/sad_face.jpg"; ViewData["imgURL"] = imgURL; ViewData["faceDetectionResult"] = await CognitiveService.FaceDetctionAsync(imgURL); return(View()); }
public async Task <IActionResult> Index() { string imgURL = Utility.getRootPath() + "/Resources/sad_face.jpg"; ViewData["imgURL"] = imgURL; ViewData["faceDetectionResult"] = await CognitiveService.FaceDetctionAsync(imgURL); return(View()); }