public ActionResult DeleteConfirmed(int id) { drRepo.Remove(id); return(RedirectToAction("Index")); }
public void RemoveById(int donorId) { var donor = _donorRepository.GetById(donorId); _donorRepository.Remove(donor); }