UserDto.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using Microsoft.AspNetCore.Http;
  2. using MTWorkHR.Core.Global;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace MTWorkHR.Application.Models
  10. {
  11. public class UserDto
  12. {
  13. public string? Id { get; set; }
  14. [Required]
  15. public string FirstName { get; set; }
  16. public DateTime DateOfBirth { get; set; }
  17. public string IdNumber { get; set; }
  18. public string LastName { get; set; }
  19. [Required]
  20. [EmailAddress]
  21. public string Email { get; set; }
  22. public string PassportNumber { get; set; }
  23. public DateTime? PassportExpiryDate { get; set; }
  24. public string? FavoriteName { get; set; }
  25. public string PhoneNumber { get; set; }
  26. public string? LinkedInLink { get; set; }
  27. [Required]
  28. public UserTypeEnum UserType { get; set; }
  29. [Required]
  30. [MinLength(6)]
  31. public string UserName { get; set; }
  32. public string? Password { get; set; }
  33. public int? QualificationId { get; set; }
  34. public int? UniversityId { get; set; }
  35. public int? JobTitleId { get; set; }
  36. public int? IndustryId { get; set; }
  37. public int? CountryId { get; set; }
  38. public int? NationalityId { get; set; }
  39. public string? QualificationName { get; set; }
  40. public string? UniversityName { get; set; }
  41. public string? JobTitleName { get; set; }
  42. public string? IndustryName { get; set; }
  43. public string? CountryName { get; set; }
  44. public decimal TaxNumber { get; set; }
  45. public decimal IncomeTaxValue { get; set; }
  46. public string? Position { get; set; }
  47. public long? CompanyId { get; set; }
  48. public bool IsCheckedIn { get; set; }
  49. public bool IsCheckedOut { get; set; }
  50. public string? ProfileImagePath { get; set; }
  51. public IFormFile? ProfileImage { get; set; }
  52. public IFormFile? CVAttach { get; set; }
  53. public IFormFile? PassportAttach { get; set; }
  54. public IFormFile? EduCertificateAttach { get; set; }
  55. public IFormFile? ExperienceCertificateAttach { get; set; }
  56. public IFormFile? ProfCertificateAttach { get; set; }
  57. //Company attach
  58. public IFormFile? CommercialRegAttach { get; set; }
  59. public IFormFile? TaxDeclarationAttach { get; set; }
  60. public IFormFile? IdAttach { get; set; }
  61. public IList<UserRoleDto>? UserRoles { get; set; }
  62. public IList<AttachmentDto>? UserAttachments{ get; set; }
  63. public UserAddressDto? UserAddress{ get; set; }
  64. }
  65. }