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

            if (seat == null)
                return;

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

            if (seat == null)
            {
                return;
            }

            seat.Status = BookableSeatStatus.Reserved;
        }