Advertisement
Somo4k

Untitled

Aug 19th, 2022
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Text;
  5. using Newtonsoft.Json;
  6.  
  7. namespace Trucks.DataProcessor.ImportDto
  8. {
  9. [JsonObject]
  10. public class ImportCleintsDTOJson
  11. {
  12.  
  13. [Required(AllowEmptyStrings = false)]
  14. [StringLength(40, MinimumLength = 3)]
  15. public string Name { get; set; }
  16.  
  17. [Required(AllowEmptyStrings = false)]
  18. [StringLength(40, MinimumLength = 2)]
  19. public string Nationality { get; set; }
  20.  
  21. [Required(AllowEmptyStrings = false)]
  22. public string Type { get; set; }
  23.  
  24. [MinLength(1)]
  25. public int[] Trucks { get; set; }
  26.  
  27. }
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement