public IActionResult Delete(Student student) { try { studentDataAccessLayer.DeleteStudent(student.Id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public ActionResult Delete(Student student) { try { // TODO: Add delete logic here studentDataAccessLayer.DeleteStudent(student.Id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public void Delete(int id) { sdal.DeleteStudent(id); }
public ActionResult confirmDelete(int?id) { objStudent.DeleteStudent(id); return(RedirectToAction("Index")); }
public ActionResult DeleteConfirmed(int?id) { objstudent.DeleteStudent(id); return(RedirectToAction("Index")); }
public int Delete(int id) { return(objStudent.DeleteStudent(id)); }