User
fix: rename menu access and permissions on dtos controllers and services
c42fd03
Raw
History Blame Contribute Delete
535 Bytes
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();
}
}