public void When(SeatMadeAvailable evt) { var seat = Seats.FirstOrDefault(x => x.Id == evt.SeatId); if (seat == null) return; seat.Status = BookableSeatStatus.Available; }
public void When(SeatMadeAvailable evt) { var seat = Seats.FirstOrDefault(x => x.Id == evt.SeatId); if (seat == null) { return; } seat.Status = BookableSeatStatus.Available; }