Advertisement
Iv555

Untitled

Aug 6th, 2022
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Text;
  5.  
  6. namespace Footballers.DataProcessor.ImportDto
  7. {
  8. public class TeamInputModel
  9. {
  10. [Required]
  11. [StringLength(40, MinimumLength = 3)]
  12. [RegularExpression(@"^[A-Za-z0-9\s.-]+$")]
  13. public string Name { get; set; }
  14.  
  15. [Required]
  16. [StringLength(40, MinimumLength = 2)]
  17. public string Nationality { get; set; }
  18. public int Trophies { get; set; }
  19. public IEnumerable<int> Footballers { get; set; }
  20. }
  21.  
  22.  
  23.  
  24. }
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement