using ModelTools.BindingModels;
using ModelTools.Enums;
using System;
using System.ComponentModel.DataAnnotations;
namespace SecurityBusinessLogic.BindingModels
{
///
/// Получение информации по доступу
///
public class AccessGetBindingModel : GetBindingModel
{
public Guid? RoleId { get; set; }
}
///
/// Сохранение информации по доступу
///
public class AccessSetBindingModel : SetBindingModel
{
public Guid RoleId { get; set; }
[Required(ErrorMessage = "required")]
public AccessOperation Operation { get; set; }
public AccessType AccessType { get; set; }
}
}