mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 10:43:13 +00:00
20 lines
830 B
C#
20 lines
830 B
C#
using Data.SeaHavenIndustries;
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
{
|
|
public interface IDispatchDataService
|
|
{
|
|
Task<Dispatch?> GetByIdAsync(int id);
|
|
Task<Dispatch?> GetByIdWithDetailsAsync(int id);
|
|
Task<IEnumerable<Dispatch>> GetAllAsync();
|
|
Task<IEnumerable<Dispatch>> GetByVendorIdAsync(int vendorId);
|
|
Task<IEnumerable<Dispatch>> GetByStatusAsync(string status);
|
|
Task<(IEnumerable<Dispatch> Items, int TotalCount)> GetPagedAsync(int page, int pageSize, string? search = null, string? status = null);
|
|
Task<Dispatch> AddAsync(Dispatch dispatch);
|
|
Task UpdateAsync(Dispatch dispatch);
|
|
Task DeleteAsync(int id);
|
|
Task<bool> ExistsAsync(int id);
|
|
Task<string> GenerateNextDispatchNumberAsync();
|
|
Task<int> CountAsync();
|
|
}
|
|
}
|