2021-03-29 23:16:11 +04:00
|
|
|
|
using ModuleTools.Attributes;
|
|
|
|
|
using ModuleTools.BindingModels;
|
2021-03-26 20:09:52 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace SecurityBusinessLogic.BindingModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение роли
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class RoleGetBindingModel : GetBindingModel { }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение роли
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class RoleSetBindingModel : SetBindingModel
|
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
2021-03-29 23:16:11 +04:00
|
|
|
|
[MapConfiguration("RoleName")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public string RoleName { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
2021-03-29 23:16:11 +04:00
|
|
|
|
[MapConfiguration("RolePriority")]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public int RolePriority { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|