public ActionResult Delete(int id, SpeakerViewModel model) { Speakers deleteSpeaker = new Speakers(); deleteSpeaker = speaker.GetById(id); model.InjectFrom(deleteSpeaker); speaker.DeleteSpeakers(deleteSpeaker); return(RedirectToAction(nameof(Index))); }