Esempio n. 1
0
 public ActionResult DeleteConform(int id)
 {
     try
     {
         Class clas = _classesRepository.GetId(id);
         _classesRepository.Delete(id);
         _classesRepository.Save();
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Esempio n. 2
0
 public async Task Delete(int id)
 {
     await classesRepository.Delete(id);
 }
 public void DeleteStudent(int id)
 {
     _classesRepository.Delete(id);
 }