UserUpdateDto.cs 747 B

123456789101112131415161718192021222324
  1. using System.Collections.Generic;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace MTWorkHR.Application.Models
  4. {
  5. public class UserUpdateDto
  6. {
  7. public string? Id { get; set; }
  8. public string? ManagerId { get; set; }
  9. public long? DepartmentId { get; set; }
  10. public long? BranchId { get; set; }
  11. [Required(ErrorMessage = "User Name is required")]
  12. public string UserName { get; set; }
  13. [Required(ErrorMessage = "Email is required")]
  14. public string Email { get; set; }
  15. public string FullName { get; set; }
  16. public string PhoneNumber { get; set; }
  17. public bool IsSalesman { get; set; }
  18. public IList<UserRoleDto>? UserRoles { get; set; }
  19. }
  20. }