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"); } }
private void SelectScaffoldType(ScaffoldType scaffoldType) { Options.SelectedScaffoldType = scaffoldType; }