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