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