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; }
protected virtual void OnSaleCreated() { CreateNotification(EventActionType.Created); SaleCreated?.Invoke(this, new NewNotificationEventArgs(this)); }