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); }
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); }