RoleDto.cs 413 B

1234567891011121314151617
  1. using System.Collections.Generic;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace MTWorkHR.Application.Models
  4. {
  5. public class RoleDto
  6. {
  7. public string? Id { get; set; }
  8. [Required(ErrorMessage = "Name is required")]
  9. public string Name { get; set; }
  10. public bool? IsAdmin { get; set; }
  11. public IList<RolePermissionDto>? RolePermissions { get; set; }
  12. }
  13. }