using Entities.Models; namespace Entities.Interfaces { public interface IOrderRepository { Task AddAsync(Order order); Task GetByIdAsync(int orderId); Task> GetAllAsync(); Task> GetBySenderIdAsync(int senderId); Task> GetByRecipientIdAsync(int recipientId); Task> GetByUserIdAsync(int userId); Task> GetByStatusAsync(OrderStatus status); Task UpdateAsync(Order order); Task DeleteAsync(int orderId); Task ExistsAsync(int orderId); Task DoesItBelong(int orderId, int userId); Task SaveChangesAsync(); } }