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