26 lines
663 B
C#
26 lines
663 B
C#
using ModelTools.Attributes;
|
|
using ModelTools.ViewModels;
|
|
|
|
namespace SecurityBusinessLogic.ViewModels
|
|
{
|
|
/// <summary>
|
|
/// Список ролей
|
|
/// </summary>
|
|
public class RoleListViewModel : ListViewModel<RoleViewModel> { }
|
|
|
|
/// <summary>
|
|
/// Элемент ролей
|
|
/// </summary>
|
|
public class RoleViewModel : ElementViewModel
|
|
{
|
|
[ViewModelOnListProperty("Название роли")]
|
|
[MapConfiguration("RoleName")]
|
|
public string RoleName { get; set; }
|
|
|
|
[ViewModelOnListProperty("Приоритет", 100)]
|
|
[MapConfiguration("RolePriority")]
|
|
public int RolePriority { get; set; }
|
|
|
|
public override string ToString() => RoleName;
|
|
}
|
|
} |