public async Task <IActionResult> DeletePersonne(int id) { var personne = await repository.GetAsync(id); if (personne == null) { return(BadRequest()); } repository.Remove(personne); await unitOfWork.CompletAsync(); return(Ok(id)); }