public void DeleteTrip(string tripName, string username) { Trip trip = GetTripByNameAndUser(tripName, username); if (trip != null) { _context.Remove(trip); } }
public void DeleteTrip(Trip trip) { _context.Remove(trip); }