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