Exemplo n.º 1
0
        private void On(SaleCreated ev)
        {
            this.SellerId = ev.SellerId;
            this.Item     = ev.Item;
            this.Price    = ev.Price;
            this.Stock    = this.AvailableStock = ev.Stock;

            this.Created = true;
        }
Exemplo n.º 2
0
 protected virtual void OnSaleCreated()
 {
     CreateNotification(EventActionType.Created);
     SaleCreated?.Invoke(this, new NewNotificationEventArgs(this));
 }