public ActionResult Edit(int?pId) { if (pId.HasValue) { var personne = _personneRepository.GetPersonne(pId); return(View(personne)); } return(View()); }