31 lines
778 B
C#
31 lines
778 B
C#
using Marco.Pms.Model.Entitlements;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Marco.Pms.Model.Dtos.Roles
|
|
{
|
|
public class UpdateApplicationRoleDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
|
|
[Required(ErrorMessage = "Role Name is required!")]
|
|
[DisplayName("Name")]
|
|
|
|
public string Role { get; set; }
|
|
|
|
[Required(ErrorMessage = "Role Description is required!")]
|
|
[DisplayName("Description")]
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
public List<FeaturesPermissionDto> FeaturesPermission { get; set; } // Features assigned to this role
|
|
}
|
|
|
|
public class FeaturesPermissionDto
|
|
{
|
|
public Guid Id { get; set; }
|
|
public bool IsEnabled { get; set; }
|
|
}
|
|
}
|