mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-03 12:43:33 +00:00
18 lines
717 B
C#
18 lines
717 B
C#
|
|
using SeaHaven.Services.DTOs;
|
||
|
|
|
||
|
|
namespace SeaHaven.Services.Interfaces
|
||
|
|
{
|
||
|
|
public interface IVendorService
|
||
|
|
{
|
||
|
|
Task<VendorDTO?> GetVendorByIdAsync(int id);
|
||
|
|
Task<VendorDTO?> GetVendorByIdWithDetailsAsync(int id);
|
||
|
|
Task<IEnumerable<VendorDTO>> GetAllVendorsAsync();
|
||
|
|
Task<PagedResult<VendorDTO>> GetVendorsPagedAsync(int page, int pageSize, string? search = null);
|
||
|
|
Task<VendorDTO> CreateVendorAsync(CreateVendorDTO dto, string userId);
|
||
|
|
Task<VendorDTO> UpdateVendorAsync(int id, UpdateVendorDTO dto, string userId);
|
||
|
|
Task DeleteVendorAsync(int id, string userId);
|
||
|
|
Task<bool> VendorExistsAsync(int id);
|
||
|
|
Task<int> GetTotalVendorCountAsync();
|
||
|
|
}
|
||
|
|
}
|