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