init
This commit is contained in:
17
KretaWeb/Attributes/KretaDisplayNameAttribute.cs
Normal file
17
KretaWeb/Attributes/KretaDisplayNameAttribute.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel;
|
||||
using Kreta.BusinessLogic.Utils;
|
||||
|
||||
namespace Kreta.Web.Attributes
|
||||
{
|
||||
public class KretaDisplayNameAttribute : DisplayNameAttribute
|
||||
{
|
||||
public KretaDisplayNameAttribute(int resourceId)
|
||||
: base(GetMessageFromResource(resourceId))
|
||||
{ }
|
||||
|
||||
private static string GetMessageFromResource(int resourceId)
|
||||
{
|
||||
return StringResourcesUtils.GetString(resourceId);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user