UserUpdateDto.cs 2.2 KB

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