public void SetDefaults(DefaultsInfo info) { var settings = _configurationProvider.GetSiteSettings <PageDefaultsSettings>(); settings.UrlGenerators[info.PageTypeName] = info.GeneratorTypeName; settings.Layouts[info.PageTypeName] = info.LayoutId; _configurationProvider.SaveSettings(settings); }
public void SetDefaults(DefaultsInfo info) { Settings.UrlGenerators[info.PageTypeName] = info.GeneratorTypeName; Settings.Layouts[info.PageTypeName] = info.LayoutId; _configurationProvider.SaveSettings(Settings); }
public RedirectToRouteResult Set(DefaultsInfo info) { _service.SetDefaults(info); return(RedirectToAction("Index")); }