public async Task <ActionResult> AnnotateImages(int incidentId) { var sharePointToken = AuthenticationHelper.GetAccessTokenAsync(AppSettings.DemoSiteServiceResourceId); var graphService = AuthenticationHelper.GetGraphServiceAsync(AADAppSettings.GraphResourceUrl); var dashboardService = new Dashboard(await sharePointToken); var pageUrl = await dashboardService.AnnotateImagesAsync(await graphService, Server.MapPath("/"), incidentId); return(Redirect(pageUrl)); }