DepartmentProject/DepartmentPortal/Common/ModuleTools/Interfaces/IEntitySecurityExtenstion.cs

18 lines
578 B
C#
Raw Permalink 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.

namespace ModuleTools.Interfaces
{
/// <summary>
/// Работа с сущностями с применением скрытности для полей
/// </summary>
/// <typeparam name="T">Сущность</typeparam>
public interface IEntitySecurityExtenstion<T>
where T: new()
{
/// <summary>
/// Обработка сущности для сокрытия важных полей
/// </summary>
/// <param name="entity"></param>
/// <param name="allowFullData"></param>
/// <returns></returns>
T SecurityCheck(T entity, bool allowFullData);
}
}