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;
- using Newtonsoft.Json;
- namespace Trucks.DataProcessor.ImportDto
- {
- [JsonObject]
- public class ImportCleintsDTOJson
- {
- [Required(AllowEmptyStrings = false)]
- [StringLength(40, MinimumLength = 3)]
- public string Name { get; set; }
- [Required(AllowEmptyStrings = false)]
- [StringLength(40, MinimumLength = 2)]
- public string Nationality { get; set; }
- [Required(AllowEmptyStrings = false)]
- public string Type { get; set; }
- [MinLength(1)]
- public int[] Trucks { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement