Created
April 15, 2019 01:13
-
-
Save yuka1984/ccf8ffb4b2abc04d7277942a4ad40461 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 ProductCreateRequest | |
{ | |
/// <summary> | |
/// Sku | |
/// </summary> | |
[MaxLength(32)] | |
[Required] | |
[JsonProperty("sku")] | |
public string Sku { get; set; } | |
/// <summary> | |
/// Product Name | |
/// </summary> | |
[MaxLength(100)] | |
[Required] | |
[JsonProperty("name")] | |
public string Name { get; set; } | |
/// <summary> | |
/// Product Amount | |
/// </summary> | |
[Required] | |
[JsonProperty("amount")] | |
public int? Amount { get; set; } | |
/// <summary> | |
/// Stock | |
/// </summary> | |
[JsonProperty("stock")] | |
public int? Stock { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment