using ModuleTools.Attributes;
using ModuleTools.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
{
[Required(ErrorMessage = "required")]
[MapConfiguration("UserId")]
public Guid UserId { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("RoleId")]
public Guid RoleId { get; set; }
}
}