Created
August 22, 2016 16:59
-
-
Save dcomartin/ee3c8307c365717aeea6bea635e6cc01 to your computer and use it in GitHub Desktop.
This file contains 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
public class ProductResource | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public decimal Price { get; set; } | |
public string Category { get; set; } | |
public int AvailableToPromise { get; set; } | |
public Link[] Links => new[] | |
{ | |
new Link(rel: "Self", href: $"/products/{Id}"), | |
new Link(rel: "InventoryAdjustment", href: $"/products/{Id}/inventoryadjustment/{Guid.NewGuid()}"), | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment