public UpdateProductCommand(int productId, string productName, Models.Shop.Category category, Models.Shop.Detail detail, Models.Shop.Seller seller, ICollection <Models.Shop.Image> images) { ProductId = productId; ProductName = productName; Category = category; Detail = detail; Seller = seller; Images = images; }
public ProductCreatedEvent(int productId, string productName, Models.Shop.Category category, Models.Shop.Detail detail, Models.Shop.Seller seller, ICollection <Models.Shop.Image> images) { ProductId = productId; ProductName = productName; Category = category; Detail = detail; Seller = seller; Images = images; AggregateId = productId; }