17 lines
454 B
C#
17 lines
454 B
C#
// src/Webshop.Domain/Interfaces/IOrderRepository.cs
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Webshop.Domain.Entities;
|
|
|
|
namespace Webshop.Domain.Interfaces
|
|
{
|
|
public interface IOrderRepository
|
|
{
|
|
Task<IEnumerable<Order>> GetAllAsync();
|
|
Task<Order?> GetByIdAsync(Guid id);
|
|
Task AddAsync(Order order);
|
|
Task UpdateAsync(Order order);
|
|
Task DeleteAsync(Guid id);
|
|
}
|
|
} |