Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.ComponentModel.DataAnnotations;
- namespace Models
- {
- public class TodoModel
- {
- public int Id { get; set; }
- [StringLength(60, MinimumLength = 3)]
- [Required(ErrorMessage = "Invalid to-do name")]
- [Display(Name = "To do name")]
- public string Name { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment