UserDto.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 decimal TaxNumber { get; set; }
  38. public decimal IncomeTaxValue { get; set; }
  39. public long? CompanyId { get; set; }
  40. public IFormFile? CVAttach { get; set; }
  41. public IFormFile? PassportAttach { get; set; }
  42. public IFormFile? EduCertificateAttach { get; set; }
  43. public IFormFile? ExperienceCertificateAttach { get; set; }
  44. public IFormFile? ProfCertificateAttach { get; set; }
  45. public IList<UserRoleDto>? UserRoles { get; set; }
  46. public IList<AttachmentDto>? UserAttachments{ get; set; }
  47. public UserAddressDto? UserAddress{ get; set; }
  48. }
  49. }