public async Task <IActionResult> DeleteAccessoire([FromBody] Accessoire item) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _formationService.DeleteAccessoireAsync(item.Id); if (result) { return(Ok(result)); } else { return(NotFound()); } }