mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-01 23:13:22 +00:00
17 lines
717 B
C#
17 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();
|
|
}
|
|
}
|