DepartmentProject/DepartmentPortal/Security/SecurityBusinessLogic/BindingModels/UserRoleBindingModels.cs
kotcheshir73 e8836c8806 куча наработко по выводу элемента и списка
правки по сущностям безоапсности
2021-04-01 21:30:29 +04:00

31 lines
798 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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