18 lines
541 B
C#
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);
|
|
}
|
|
} |