UserUpdateDto.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 string? FavoriteName { get; set; }
  20. public string PhoneNumber { get; set; }
  21. public string? LinkedInLink { get; set; }
  22. [Required]
  23. public UserTypeEnum UserType { get; set; }
  24. [Required]
  25. [MinLength(6)]
  26. public string UserName { get; set; }
  27. public string? Password { get; set; }
  28. public int? QualificationId { get; set; }
  29. public int? UniversityId { get; set; }
  30. public int? JobTitleId { get; set; }
  31. public int? IndustryId { get; set; }
  32. public int? CountryId { get; set; }
  33. public string? QualificationName { get; set; }
  34. public string? UniversityName { get; set; }
  35. public string? JobTitleName { get; set; }
  36. public string? IndustryName { get; set; }
  37. public string? CountryName { get; set; }
  38. public decimal TaxNumber { get; set; }
  39. public decimal IncomeTaxValue { get; set; }
  40. public string? Position { get; set; }
  41. public long? CompanyId { get; set; }
  42. public IFormFile? ProfileImage { get; set; }
  43. public IFormFile? CVAttach { get; set; }
  44. public IFormFile? PassportAttach { get; set; }
  45. public IFormFile? EduCertificateAttach { get; set; }
  46. public IFormFile? ExperienceCertificateAttach { get; set; }
  47. public IFormFile? ProfCertificateAttach { get; set; }
  48. public IList<UserRoleDto>? UserRoles { get; set; }
  49. public IList<AttachmentDto>? UserAttachments { get; set; }
  50. public UserAddressDto? UserAddress { get; set; }
  51. }
  52. }