ITripParticipantRepository.cs
329 bytes
| 1 | using Base.Contracts; |
|---|---|
| 2 | |
| 3 | namespace App.Domain.Contracts; |
| 4 | |
| 5 | public interface ITripParticipantRepository : IBaseRepository<TripParticipant> |
| 6 | { |
| 7 | Task<bool> IsParticipantAsync(Guid tripId, Guid userId); |
| 8 | Task<bool> IsOrganizerAsync(Guid tripId, Guid userId); |
| 9 | Task<IEnumerable<TripParticipant>> GetByTripIdAsync(Guid tripId); |
| 10 | } |
| 11 | |