26 lines
682 B
C#
26 lines
682 B
C#
using CoreModels.ModelsSecurity;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using ToolsModule.ManagmentEntity;
|
|
|
|
namespace SecurityContract.BindingModels
|
|
{
|
|
/// <summary>
|
|
/// Получение роли
|
|
/// </summary>
|
|
public class RoleGetBindingModel : GetBindingModel
|
|
{
|
|
public string RoleName { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Сохранение роли
|
|
/// </summary>
|
|
public class RoleSetBindingModel : SetBindingModel, IRoleModel
|
|
{
|
|
[Required(ErrorMessage = "required")]
|
|
public string RoleName { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
public int RolePriority { get; set; }
|
|
}
|
|
} |