Ejemplo n.º 1
0
 public void Handle(DiscountViewModel message)
 {
     if (currentUser == null)
     {
         this.SignIn();
         return;
     }
     ActivateItem(message);
 }
Ejemplo n.º 2
0
 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();
     }
 }