Files
ShopSolution-backend/Webshop.Domain/Interfaces/IReviewRepository.cs
Tizian.Breuch 5b84ccc575 review
2025-09-08 11:24:10 +02:00

18 lines
541 B
C#

// src/Webshop.Domain/Interfaces/IReviewRepository.cs
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Domain.Entities;
namespace Webshop.Domain.Interfaces
{
public interface IReviewRepository
{
Task<IEnumerable<Review>> GetAllAsync();
Task<IEnumerable<Review>> GetApprovedByProductIdAsync(Guid productId);
Task<Review?> GetByIdAsync(Guid id);
Task AddAsync(Review review);
Task UpdateAsync(Review review);
Task DeleteAsync(Guid id);
}
}