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