public IActionResult DeleteConfirmed(int id) { var speaker = _speakerRepository.GetSpeaker(id); _speakerRepository.Delete(speaker); return(RedirectToAction(nameof(Index))); }
// GET: Speaker/Delete/5 public ActionResult Delete(int id) { _speakerRepository.Delete(id); return(RedirectToAction("Index", "Speaker")); }
public bool Delete(Speaker speaker) { return(repo.Delete(speaker)); }
public void DeleteSpeakers(Speakers speakers) { speakerRepository.Delete(speakers); }