UserDto.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 string? FavoriteName { get; set; }
  24. public string PhoneNumber { get; set; }
  25. public string? LinkedInLink { get; set; }
  26. [Required]
  27. public UserTypeEnum UserType { get; set; }
  28. [Required]
  29. [MinLength(6)]
  30. public string UserName { get; set; }
  31. public string? Password { get; set; }
  32. public int? QualificationId { get; set; }
  33. public int? UniversityId { get; set; }
  34. public int? JobTitleId { get; set; }
  35. public int? IndustryId { get; set; }
  36. public int? CountryId { get; set; }
  37. public string? QualificationName { get; set; }
  38. public string? UniversityName { get; set; }
  39. public string? JobTitleName { get; set; }
  40. public string? IndustryName { get; set; }
  41. public string? CountryName { get; set; }
  42. public decimal TaxNumber { get; set; }
  43. public decimal IncomeTaxValue { get; set; }
  44. public string? Position { get; set; }
  45. public long? CompanyId { get; set; }
  46. public bool IsCheckedIn { get; set; }
  47. public bool IsCheckedOut { get; set; }
  48. public IFormFile? ProfileImage { get; set; }
  49. public IFormFile? CVAttach { get; set; }
  50. public IFormFile? PassportAttach { get; set; }
  51. public IFormFile? EduCertificateAttach { get; set; }
  52. public IFormFile? ExperienceCertificateAttach { get; set; }
  53. public IFormFile? ProfCertificateAttach { get; set; }
  54. //Company attach
  55. public IFormFile? CommercialRegAttach { get; set; }
  56. public IFormFile? TaxDeclarationAttach { get; set; }
  57. public IFormFile? IdAttach { get; set; }
  58. public IList<UserRoleDto>? UserRoles { get; set; }
  59. public IList<AttachmentDto>? UserAttachments{ get; set; }
  60. public UserAddressDto? UserAddress{ get; set; }
  61. }
  62. }