예제 #1
0
        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 ! "));
        }