public ActionResult DeleteSafeguard([FromServices] ISafeguardLogic safeguard, [FromQuery] string confirm) { if (confirm == null || !confirm.Equals("yes", StringComparison.InvariantCultureIgnoreCase)) { return(BadRequest()); } safeguard.DeleteSafeguardData(); return(NoContent()); }