mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 13:03:12 +00:00
19 lines
730 B
C#
19 lines
730 B
C#
using Data.SeaHavenIndustries;
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
{
|
|
public interface IVendorDataService
|
|
{
|
|
Task<Vendor?> GetByIdAsync(int id);
|
|
Task<Vendor?> GetByIdWithDetailsAsync(int id);
|
|
Task<IEnumerable<Vendor>> GetAllAsync();
|
|
Task<(IEnumerable<Vendor> Items, int TotalCount)> GetPagedAsync(int page, int pageSize, string? search = null);
|
|
Task<Vendor> AddAsync(Vendor vendor);
|
|
Task UpdateAsync(Vendor vendor);
|
|
Task DeleteAsync(int id);
|
|
Task<bool> ExistsAsync(int id);
|
|
Task<VendorAccessToken?> GetActiveTokenAsync(int vendorId);
|
|
Task<VendorAccessToken?> GetTokenByStringAsync(string token);
|
|
Task<int> CountAsync();
|
|
}
|
|
}
|