Files
ShopSolution-backend/Webshop.Domain/Interfaces/IProductRepository.cs
Tizian.Breuch 7aa5ec9500
Some checks failed
Branch - test - Build and Push Backend API Docker Image / build-and-push (push) Failing after 20s
test bilder upload
2025-11-07 09:49:51 +01:00

19 lines
611 B
C#

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Domain.Entities;
namespace Webshop.Domain.Interfaces
{
public interface IProductRepository
{
Task<IEnumerable<Product>> GetAllProductsAsync();
Task<Product?> GetProductByIdAsync(Guid id);
Task<Product?> GetBySlugAsync(string slug);
Task AddProductAsync(Product product);
Task<Product?> GetProductByIdForUpdateAsync(Guid id); // NEU
Task UpdateProductAsync(); // GEÄNDERT (parameterlos)
Task DeleteProductAsync(Guid id);
}
}