2021-03-28 19:15:55 +04:00
|
|
|
|
using ModuleTools.Attributes;
|
|
|
|
|
using ModuleTools.ViewModels;
|
2021-03-26 20:09:52 +04:00
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|