public static string AsParameter(this ScaffoldType templateOption)
        {
            switch (templateOption)
            {
            case ScaffoldType.SingleView:
                return("single-view");

            case ScaffoldType.NavigationMenu:
                return("navigation-menu");

            default:
                throw new ArgumentOutOfRangeException(nameof(templateOption), $"No matching {nameof(ScaffoldType)} type");
            }
        }
Beispiel #2
0
 private void SelectScaffoldType(ScaffoldType scaffoldType)
 {
     Options.SelectedScaffoldType = scaffoldType;
 }