protected static string GetMenuName(ObjectSpecImmutable spec)
 {
     if (spec.Service)
     {
         return(spec.GetFacet <INamedFacet>().Value ?? NameUtils.NaturalName(spec.ShortName));
     }
     return(Model.ActionsMenuName);
 }
Example #2
0
        private string UniqueShortName(ObjectSpecImmutable spec)
        {
            string usn  = spec.ShortName;
            Type   type = spec.Type;

            if (type.IsGenericType)
            {
                usn += "-" + type.GetGenericArguments().First().Name;
            }
            return(usn);
        }