DepartmentProject/DepartmentPortal/Security/SecurityContract/BindingModels/AccessBindingModels.cs

32 lines
910 B
C#
Raw Permalink Normal View History

using CoreModels.ModelsSecurity;
using System;
using System.ComponentModel.DataAnnotations;
2022-03-20 10:10:44 +04:00
using ToolsModule.ManagmentEntity;
using ToolsModule.ManagmentSecurity;
namespace SecurityContract.BindingModels
{
/// <summary>
/// Получение информации по доступу
/// </summary>
public class AccessGetBindingModel : GetBindingModel
{
/// <summary>
/// Для вывода списка доступов по роли в контроле десктопном
/// </summary>
public Guid? RoleId { get; set; }
}
/// <summary>
/// Сохранение информации по доступу
/// </summary>
public class AccessSetBindingModel : SetBindingModel, IAccessModel
{
public Guid RoleId { get; set; }
[Required(ErrorMessage = "required")]
public AccessOperation AccessOperation { get; set; }
public AccessType AccessType { get; set; }
}
}