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