예제 #1
0
        public void Handle(OrderEvent args)
        {
            //prob should be passing in id
            var dto = new OrderDto
            {
                Id         = args.Order.Id,
                CustomerId = args.Order.Customer.Id,
                EventId    = args.Order.Evt.Id,
                Quantity   = args.Order.Quantity
            };

            OrderDataAccess.Create(dto);
        }