public void When(SeatReserved evt)
        {
            var seat = Seats.FirstOrDefault(x => x.Id == evt.SeatId);

            if (seat == null)
                return;

            seat.Status = BookableSeatStatus.Reserved;
        }
Beispiel #2
0
        public void When(SeatReserved evt)
        {
            var seat = Seats.FirstOrDefault(x => x.Id == evt.SeatId);

            if (seat == null)
            {
                return;
            }

            seat.Status = BookableSeatStatus.Reserved;
        }