Newer
Older
OptimisticConcurrency / cosmos / Order.cs
@Derek Comartin Derek Comartin on 10 Nov 2021 409 bytes Init
using Newtonsoft.Json;

public class Order
{
    [JsonProperty(PropertyName = "id")]
    public string Id { get; set; }

    [JsonProperty(PropertyName = "customerId")]
    public string CustomerId { get; set; }

    [JsonProperty(PropertyName = "status")]
    public OrderStatus Status { get; set; } = OrderStatus.Placed;
}

public enum OrderStatus
{
    Placed,
    Processing,
    Cancelled,
    Shipped,
}