6d8b6b3e59
Implemented DeliveryTask, Payment, and Sale entities with full CRUD, business logic, and API endpoints. Updated Order/OrderItem for sale linkage and fulfillment tracking. Registered new DbSets and DI services. Revised documentation for delivery, sale, and payment workflows.
13 lines
371 B
C#
13 lines
371 B
C#
using Distribution.Models;
|
|
|
|
namespace Distribution.Features.DeliveryRide;
|
|
|
|
public interface IDeliveryTaskRepository
|
|
{
|
|
Task<DeliveryTask?> GetByIdAsync(Guid id);
|
|
Task<List<DeliveryTask>> GetByRideIdAsync(Guid rideId);
|
|
Task<bool> ExistsForOrderAndRideAsync(Guid orderId, Guid rideId);
|
|
Task AddAsync(DeliveryTask task);
|
|
void Update(DeliveryTask task);
|
|
}
|