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