Esempio n. 1
0
 public ActionResult DeleteAll([FromQuery] int key = 0)
 {
     if (key == Secrets.ourKey)
     {
         _manager.DeleteAll(key);
         return(Ok("Everything deleted"));
     }
     return(BadRequest("Wrong Key, try again"));
 }