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