UserDto.cs 865 B

12345678910111213141516171819202122232425262728293031
  1. using MTWorkHR.Core.Global;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace MTWorkHR.Application.Models
  9. {
  10. public class UserDto
  11. {
  12. public string? Id { get; set; }
  13. [Required]
  14. [EmailAddress]
  15. public string Email { get; set; }
  16. [Required]
  17. public string FirstName { get; set; }
  18. public string LastName { get; set; }
  19. public string PhoneNumber { get; set; }
  20. public string LinkedInLink { get; set; }
  21. [Required]
  22. public UserTypeEnum UserType { get; set; }
  23. [Required]
  24. [MinLength(6)]
  25. public string UserName { get; set; }
  26. public string Password { get; set; }
  27. public IList<UserRoleDto>? UserRoles { get; set; }
  28. }
  29. }