예제 #1
0
 public static void FillMissingProperNames()
 {
     foreach (Tag item in new List <Tag>(ProperNames.Keys))
     {
         if (string.IsNullOrEmpty(ProperNames[item]))
         {
             ProperNames[item] = TagDescriptions.GetDescription(item.Name);
         }
     }
 }
 public string GetTagDescription()
 {
     if (tags.Count > 0)
     {
         StringBuilder stringBuilder = new StringBuilder();
         stringBuilder.Append(TagDescriptions.GetDescription(tags[0].ToString()));
         for (int i = 1; i < tags.Count; i++)
         {
             stringBuilder.Append(", ");
             stringBuilder.Append(TagDescriptions.GetDescription(tags[i].ToString()));
         }
         return(stringBuilder.ToString());
     }
     return(string.Empty);
 }
예제 #3
0
        public IActionResult Get()
        {
            var tags = TagDescriptions.GetAllTagDescriptions().Select(t => new { Value = t.Name, Text = t.Name });

            return(Ok(tags));
        }