public ActionResult DeleteWithCascade(int id) { string type = TokenModel.ReadClaimFromRequest(Request, "type"); return(type == "1" ? (ActionResult)Ok(_placeService.DeleteWithCascade(id)) : BadRequest("Vous n'êtes pas administrateur ! ")); }