2022-03-18 12:47:34 +04:00
|
|
|
|
using CoreModels.ModelsSecurity;
|
2022-03-18 22:38:52 +04:00
|
|
|
|
using ToolsModule.BindingModels;
|
2021-03-26 20:09:52 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
2022-03-19 19:58:10 +04:00
|
|
|
|
namespace SecurityContract.BindingModels
|
2021-03-26 20:09:52 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение роли
|
|
|
|
|
/// </summary>
|
2022-03-18 20:09:15 +04:00
|
|
|
|
public class RoleGetBindingModel : GetBindingModel
|
|
|
|
|
{
|
|
|
|
|
public string RoleName { get; set; }
|
|
|
|
|
}
|
2021-03-26 20:09:52 +04:00
|
|
|
|
|
|
|
|
|
/// <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; }
|
|
|
|
|
}
|
|
|
|
|
}
|