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