File size: 535 Bytes
3418204
 
 
 
 
 
 
 
 
 
 
 
 
 
aa93119
3418204
c42fd03
3418204
 
c42fd03
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace TaskTrackingSystem.Shared.Models.Role
{
    public class CreateRoleDto
    {
        [Required, MaxLength(50)]
        public string Name { get; set; } = string.Empty;

        [MaxLength(200)]
        public string? Description { get; set; }

        /// <summary>
        /// Optional: Menu and permission codes to assign to this role on creation.
        /// </summary>
        public List<string> AccessCodes { get; set; } = new();
    }
}