public void DeleteRenter(int RenterId) { var Renter = RenterRepository.GetById(RenterId); RenterRepository.Delete(Renter); }
public ActionResult DeleteConfirmed(int id) { repo.Delete(id); return(RedirectToAction("Index")); }
public void DeleteRenter(int RenterId) { var Renter = RenterRepository.GetById(RenterId); RenterRepository.Delete(Renter); }
public ActionResult DeleteConfirmed(int id) { repo.Delete(id); return(RedirectToAction("Index")); }