public AddTripParticipantCommand(TripParticipant tripParticipant) { TripParticipant = tripParticipant; }
public Task DeleteAsync(TripParticipant tripParticipant) { _dbContext.TripParticipants.Remove(tripParticipant); return(_dbContext.SaveChangesAsync()); }
public DeleteTripParticipantCommand(TripParticipant tripParticipant) { TripParticipant = tripParticipant; }
public Task AddAsync(TripParticipant tripParticipant) { _dbContext.TripParticipants.AddAsync(tripParticipant); return(_dbContext.SaveChangesAsync()); }