This commit is contained in:
Tizian.Breuch
2025-08-12 11:31:25 +02:00
parent 1692fe198e
commit bbea2458ae
10 changed files with 187 additions and 46 deletions

View File

@@ -1,14 +1,16 @@
// Auto-generiert von CreateWebshopFiles.ps1
using System;
// src/Webshop.Domain/Interfaces/ISettingRepository.cs
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Domain.Entities;
namespace Webshop.Domain.Interfaces
{
// Deklariert reine Datenbankoperationen für die 'Setting'-Entität
public interface ISettingRepository
{
// Fügen Sie hier Methodensignaturen hinzu
Task<IEnumerable<Setting>> GetAllAsync();
Task<Setting?> GetByKeyAsync(string key);
Task UpdateAsync(Setting setting);
Task AddAsync(Setting setting);
}
}
}

View File

@@ -0,0 +1,12 @@
// src/Webshop.Domain/Interfaces/ISettingService.cs
using System.Threading.Tasks;
namespace Webshop.Domain.Interfaces
{
// Deklariert "Business"-Methoden, die von anderen Services genutzt werden
public interface ISettingService
{
Task<T> GetSettingValueAsync<T>(string key, T defaultValue);
Task UpdateSettingAsync(string key, string? value);
}
}