public IActionResult Delete(int id) { Commentaire c = dataProvider.GetCommsById(id); if (c != null) { dataProvider.DeleteComms(id); return(Ok()); } else { return(NotFound()); } }