2022-03-18 12:47:34 +04:00
|
|
|
|
using CoreModels.ModelsSecurity;
|
2021-03-29 23:16:11 +04:00
|
|
|
|
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>
|
2022-03-18 12:47:34 +04:00
|
|
|
|
public class RoleSetBindingModel : SetBindingModel, IRoleModel
|
2021-03-26 20:09:52 +04:00
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string RoleName { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public int RolePriority { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|