ISettingsRepo¶
Namespace: Database.Repository.SettingsRepo
Repository interface for accessing and managing topic settings.
Methods¶
AddTopicSettingAsync(TopicSetting)¶
Asynchronously adds a new topic setting to the repository.
Parameters¶
topicSetting
TopicSetting
The topic setting to add to the repository.
Returns¶
A task that represents the asynchronous operation. The task result contains the number of entities affected by the operation.
Exceptions¶
ArgumentNullException
Thrown when topicSetting is null.
InvalidOperationException
Thrown when the add operation fails.
GetTopicSettingsAsync()¶
Asynchronously retrieves a list of all topic settings.
Returns¶
A task that represents the asynchronous operation. The task result contains a list of TopicSetting objects.