public void Handle(DiscountViewModel message) { if (currentUser == null) { this.SignIn(); return; } ActivateItem(message); }
public BuyTicketViewModel(IUnitOfWork _unitOfWork, ConnectionPath _connectionpath, DiscountViewModel _discountViewModel, IEventAggregator _eventAggregator, User _currentUser, Ticket _ticket, bool randomSeats) { unitOfWork = _unitOfWork; connectionpath = _connectionpath; discountViewModel = _discountViewModel; eventAggregator = _eventAggregator; Way = connectionpath.Way; currentUser = _currentUser; Ticket = _ticket; if (randomSeats) { RandomNext(); } else { CalculateReservationTask(); } }