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