Esempio n. 1
0
        public static string GetApiLinkFor(Type type)
        {
            if (!SpecialCaseComponents.TryGetValue(type, out var component))
            {
                component = type.ToString().Replace("MudBlazor.Mud", "").ToLowerInvariant();
            }
            string href = $"/api/{component}";

            return(href);
        }
Esempio n. 2
0
        public static string GetComponentLinkFor(Type type)
        {
            if (!SpecialCaseComponents.TryGetValue(type, out var component))
            {
                component = type.ToString().Replace("MudBlazor.Mud", "").ToLowerInvariant();
            }
            if (ComponentLinkTranslation.ContainsKey(component))
            {
                component = ComponentLinkTranslation[component];
            }
            string href = $"/components/{component}";

            return(href);
        }