Пример #1
0
 public HttpResponseMessage Get(string key)
 {
     if (key == "bbhrglkjgilksgyw798987874865211642")
     {
         return(Request.CreateResponse(HttpStatusCode.OK, _service.RunCounts()));
     }
     return(Request.CreateResponse(HttpStatusCode.BadRequest));
 }
Пример #2
0
 public IActionResult Get(string key)
 {
     if (key == "bbhrglkjgilksgyw798987874865211642")
     {
         return(Ok(_service.RunCounts()));
     }
     return(NotFound());
 }