internal string Delete(int id) { var data = GetById(id); _repo.Delete(id); return("Deleted Trip"); }
public void DeleteRental(string id) { using (var Rental = new RentalRepository()) { Rental ctg = Rental.GetById(id); if (ctg != null) { Rental.Delete(ctg); } } }