Guest User

Untitled

a guest
Oct 7th, 2023
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. using System.ComponentModel.DataAnnotations;
  2.  
  3. namespace Models
  4. {
  5. public class TodoModel
  6. {
  7. public int Id { get; set; }
  8.  
  9. [StringLength(60, MinimumLength = 3)]
  10. [Required(ErrorMessage = "Invalid to-do name")]
  11. [Display(Name = "To do name")]
  12. public string Name { get; set; }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment