public IActionResult Ping() { // Retrieve the total number of links that we have stored in the database. int totalLinks = repo.GetLinkStatistics(); // Build and return a JSON response. return(Json(new { status = "online", links = totalLinks, })); }