Skip to content

Instantly share code, notes, and snippets.

@evgomes
Created January 30, 2019 12:25
Show Gist options
  • Save evgomes/e57e0bab6ac3c7bc87a2bbf648a76728 to your computer and use it in GitHub Desktop.
Save evgomes/e57e0bab6ac3c7bc87a2bbf648a76728 to your computer and use it in GitHub Desktop.
SaveCategoryResource, from Supermarket API
using System.ComponentModel.DataAnnotations;
namespace Supermarket.API.Resources
{
public class SaveCategoryResource
{
[Required]
[MaxLength(30)]
public string Name { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment