public ActionResult Delete(int id, Etudiant etudiant) { try { etudiantsRepo.Delete(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public bool Delete(string ID) { return(dal.Delete(ID)); }