public async Task <IActionResult> Index()
        {
            IEnumerable <Service> services = await _healthRepository.GetServices();

            IEnumerable <ServiceStatus> serviceStatuses = await _healthRepository.GetServiceStatuses();

            GetDataPoints(serviceStatuses.ToList(), services.Select(x => x.ServiceId).ToList());


            return(View(services));
        }
 public async Task <IEnumerable <ServiceStatus> > GetServiceStatuses()
 {
     return(await _healthRepository.GetServiceStatuses());
 }