Api/Netina.Common/Models/Entity/PageClassDisplay.cs

24 lines
555 B
C#
Raw Normal View History

2024-04-16 20:01:34 +03:30
namespace Netina.Common.Models.Entity
2023-12-16 20:25:12 +03:30
{
[AttributeUsage(AttributeTargets.Class)]
2024-09-11 19:59:27 +03:30
public class PageClassDisplay : Attribute
2023-12-16 20:25:12 +03:30
{
2024-09-11 19:59:27 +03:30
private readonly string _name;
private readonly string _description;
public PageClassDisplay(string name, string description)
{
_name = name;
_description = description;
}
2023-12-16 20:25:12 +03:30
public string GetName()
{
2024-09-11 19:59:27 +03:30
return _name;
2023-12-16 20:25:12 +03:30
}
public string GetDescription()
{
2024-09-11 19:59:27 +03:30
return _description;
2023-12-16 20:25:12 +03:30
}
}
}