Skip to content

Instantly share code, notes, and snippets.

@aramkoukia
Created January 21, 2018 22:41
Show Gist options
  • Select an option

  • Save aramkoukia/6302e179886fa2a1ef6bf91204243e20 to your computer and use it in GitHub Desktop.

Select an option

Save aramkoukia/6302e179886fa2a1ef6bf91204243e20 to your computer and use it in GitHub Desktop.
New Order Command
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