using CoreModels.ModelsSecurity;
using ToolsModule.BindingModels;
using System;
using System.ComponentModel.DataAnnotations;
namespace SecurityBusinessLogic.BindingModels
{
///
/// Получение связи пользователя с ролью
///
public class UserRoleGetBindingModel : GetBindingModel
{
public Guid? UserId { get; set; }
public Guid? RoleId { get; set; }
}
///
/// Сохранение связи пользователя с ролью
///
public class UserRoleSetBindingModel : SetBindingModel, IUserRoleModel
{
[Required(ErrorMessage = "required")]
public Guid UserId { get; set; }
[Required(ErrorMessage = "required")]
public Guid RoleId { get; set; }
}
}