public async Task <IActionResult> Get() { var reports = await healthCheckService.CheckHealthAsync(); var models = HealthReportModel.CreateFromReport(reports, "Identity"); return(Ok(models)); }
public async Task <IActionResult> Index() { var models = new List <HealthReportModel>(); models.AddRange(await endpointsHealthService.GetIdentityHealthReport()); models.AddRange(await endpointsHealthService.GetApiHealthReport()); models.AddRange(HealthReportModel.CreateFromReport(await healthCheckService.CheckHealthAsync(), "Admin")); return(View(models)); }