Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Text;
- namespace Footballers.DataProcessor.ImportDto
- {
- public class TeamInputModel
- {
- [Required]
- [StringLength(40, MinimumLength = 3)]
- [RegularExpression(@"^[A-Za-z0-9\s.-]+$")]
- public string Name { get; set; }
- [Required]
- [StringLength(40, MinimumLength = 2)]
- public string Nationality { get; set; }
- public int Trophies { get; set; }
- public IEnumerable<int> Footballers { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement