Files
parr_api/PARR.Constants/Shortcodes/Shortcodes.cs

21 lines
689 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 System.Data.Common;
namespace PARR.Constants.Shortcodes
{
public static class Shortcodes
{
private static readonly List<ShortcodeItem> ShortcodesList = new List<ShortcodeItem>()
{
new ShortcodeItem { ShortcodeEnum = ShortcodeEnum.EK, Name = "%ЭК%", Description = "Элемент конфигурации"},
new ShortcodeItem { ShortcodeEnum = ShortcodeEnum.ZO, Name = "%ЗО%", Description = "Зона ответственности"}
};
public static string GetShortcodeName(ShortcodeEnum shortcode)
{
return ShortcodesList.First(s => s.ShortcodeEnum == shortcode).Name;
}
}
}