コード例 #1
0
ファイル: Ride.cs プロジェクト: carpool-team/carpool
        public void RemoveParticipantFromRide(AppUserId participantId)
        {
            var stop = Stops.SingleOrDefault(x => x.ParticipantId == participantId);

            if (stop == default)
            {
                throw new Exception("User does not exists in this ride");
            }

            Stops.Remove(stop);
        }