UserDto.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using MTWorkHR.Core.Global;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace MTWorkHR.Application.Models
  9. {
  10. public class UserDto
  11. {
  12. public string? Id { get; set; }
  13. [Required]
  14. [EmailAddress]
  15. public string Email { get; set; }
  16. [Required]
  17. public string FirstName { get; set; }
  18. public string LastName { get; set; }
  19. public string PhoneNumber { get; set; }
  20. public string LinkedInLink { get; set; }
  21. [Required]
  22. public UserTypeEnum UserType { get; set; }
  23. [Required]
  24. [MinLength(6)]
  25. public string UserName { get; set; }
  26. public string Password { get; set; }
  27. public string? FavoriteName { get; set; }
  28. public string PassportNumber { get; set; }
  29. public int? QualificationId { get; set; }
  30. public string? University { get; set; }
  31. public string? JobTitle { get; set; }
  32. public decimal TaxNumber { get; set; }
  33. public decimal IncomeTaxValue { get; set; }
  34. public IList<UserRoleDto>? UserRoles { get; set; }
  35. public IList<UserAttachmentDto>? UserAttachments{ get; set; }
  36. public UserAddressDto? UserAddress{ get; set; }
  37. }
  38. }