Created
January 21, 2018 22:41
-
-
Save aramkoukia/6302e179886fa2a1ef6bf91204243e20 to your computer and use it in GitHub Desktop.
New Order Command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using MicroServices.Common; | |
| namespace Sales.Service.MicroServices.Order.Commands | |
| { | |
| public class StartNewOrder : ICommand | |
| { | |
| public StartNewOrder(Guid id, Guid productId, int quantity) | |
| { | |
| Id = id; | |
| ProductId = productId; | |
| Quantity = quantity; | |
| } | |
| public Guid Id { get; private set; } | |
| public Guid ProductId { get; private set; } | |
| public int Quantity { get; private set; } | |
| } | |
| public class PayForOrder : ICommand | |
| { | |
| public PayForOrder(Guid id, int version) | |
| { | |
| Id = id; | |
| Version = version; | |
| } | |
| public Guid Id { get; private set; } | |
| public int Version { get; set; } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment