RegistrationRequest.cs 702 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MTWorkHR.Application.Models
  8. {
  9. public class RegistrationRequest
  10. {
  11. [Required]
  12. public string FirstName { get; set; }
  13. [Required]
  14. public string LastName { get; set; }
  15. [Required]
  16. [MinLength(6)]
  17. public string UserName { get; set; }
  18. [Required]
  19. [EmailAddress]
  20. public string Email { get; set; }
  21. [Required]
  22. [MinLength(6)]
  23. public string Password { get; set; }
  24. public string RoleName { get; set; } // "Employee"
  25. }
  26. }