Support for third party modules, improved error handling, standardardized enum naming, reorganized interface definitions, support for DB script upgrades, added Settings entity
This commit is contained in:
27
Oqtane.Client/Services/Interfaces/ISettingService.cs
Normal file
27
Oqtane.Client/Services/Interfaces/ISettingService.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using Oqtane.Models;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Oqtane.Services
|
||||
{
|
||||
public interface ISettingService
|
||||
{
|
||||
Task<List<Setting>> GetModuleSettingsAsync(int ModuleId);
|
||||
|
||||
Task<Setting> UpdateModuleSettingsAsync(List<Setting> ModuleSettings, int ModuleId, string SettingName, string SettingValue);
|
||||
|
||||
|
||||
Task<List<Setting>> GetSettingsAsync(string EntityName, int EntityId);
|
||||
|
||||
Task<Setting> GetSettingAsync(int SettingId);
|
||||
|
||||
Task<Setting> AddSettingAsync(Setting Setting);
|
||||
|
||||
Task<Setting> UpdateSettingAsync(Setting Setting);
|
||||
|
||||
Task DeleteSettingAsync(int SettingId);
|
||||
|
||||
|
||||
string GetSetting(List<Setting> Settings, string SettingName, string DefaultValue);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user