예제 #1
0
        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"));
 }
예제 #3
0
 public bool Delete(Speaker speaker)
 {
     return(repo.Delete(speaker));
 }
예제 #4
0
 public void DeleteSpeakers(Speakers speakers)
 {
     speakerRepository.Delete(speakers);
 }