2021-03-26 20:09:52 +04:00
|
|
|
|
using ModelTools.Attributes;
|
|
|
|
|
using ModelTools.ViewModels;
|
|
|
|
|
|
|
|
|
|
namespace SecurityBusinessLogic.ViewModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список ролей
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class RoleListViewModel : ListViewModel<RoleViewModel> { }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент ролей
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class RoleViewModel : ElementViewModel
|
|
|
|
|
{
|
2021-03-27 23:50:29 +04:00
|
|
|
|
[ViewModelOnListProperty("Название роли")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
[MapConfiguration("RoleName")]
|
|
|
|
|
public string RoleName { get; set; }
|
|
|
|
|
|
2021-03-27 23:50:29 +04:00
|
|
|
|
[ViewModelOnListProperty("Приоритет", 100)]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
[MapConfiguration("RolePriority")]
|
|
|
|
|
public int RolePriority { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString() => RoleName;
|
|
|
|
|
}
|
|
|
|
|
}
|