Some checks failed
Branch - test - Build and Push Backend API Docker Image / build-and-push (push) Failing after 20s
19 lines
611 B
C#
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);
|
|
}
|
|
} |