Files
ShopSolution-backend/Webshop.Domain/Interfaces/IProductRepository.cs
Tizian.Breuch ce69373adb try
2025-07-23 21:08:30 +02:00

16 lines
510 B
C#

// src/Webshop.Domain/Interfaces/IProductRepository.cs
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Domain.Entities; // Product Entity
namespace Webshop.Domain.Interfaces
{
public interface IProductRepository
{
Task<IEnumerable<Product>> GetAllProductsAsync();
Task<Product?> GetProductByIdAsync(Guid id);
Task AddProductAsync(Product product);
Task UpdateProductAsync(Product product);
Task DeleteProductAsync(Guid id);
}
}