AspNetCore.Docs/aspnet/whitepapers/mvc3-release-notes/samples/sample9.cs

4 lines
112 B
C#

public class ProductViewModel {
[AdditionalMetadata("AdminOnly", true)]
public string RefundCode {get; set;}
}