16 lines
498 B
C#
16 lines
498 B
C#
// 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
|
|
{
|
|
Task<IEnumerable<Setting>> GetAllAsync();
|
|
Task<Setting?> GetByKeyAsync(string key);
|
|
Task UpdateAsync(Setting setting);
|
|
Task AddAsync(Setting setting);
|
|
}
|
|
} |