/// <summary> /// Get all settings /// </summary> /// <returns>Settings object</returns> public SettingsVM Get() { var vm = new SettingsVM(); vm.Settings = GetSettings(); return vm; }
/// <summary> /// Get all settings /// </summary> /// <returns>Settings object</returns> public SettingsVM Get() { if (!Security.IsAuthorizedTo(Rights.AccessAdminSettingsPages)) throw new System.UnauthorizedAccessException(); var vm = new SettingsVM(); vm.Settings = GetSettings(); return vm; }