public HttpResponseMessage Get(string key) { if (key == "bbhrglkjgilksgyw798987874865211642") { return(Request.CreateResponse(HttpStatusCode.OK, _service.RunCounts())); } return(Request.CreateResponse(HttpStatusCode.BadRequest)); }
public IActionResult Get(string key) { if (key == "bbhrglkjgilksgyw798987874865211642") { return(Ok(_service.RunCounts())); } return(NotFound()); }