2021-03-28 19:15:55 +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>
|
|
|
|
|
public class RoleSetBindingModel : SetBindingModel
|
|
|
|
|
{
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public string RoleName { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
|
|
|
public int RolePriority { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|