mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 09:33:13 +00:00
19 lines
779 B
C#
19 lines
779 B
C#
|
|
using SeaHaven.Services.DTOs;
|
||
|
|
|
||
|
|
namespace SeaHaven.Services.Interfaces
|
||
|
|
{
|
||
|
|
public interface IAssetService
|
||
|
|
{
|
||
|
|
Task<AssetDTO?> GetAssetByIdAsync(int id);
|
||
|
|
Task<AssetDTO?> GetAssetByIdWithDetailsAsync(int id);
|
||
|
|
Task<IEnumerable<AssetDTO>> GetAllAssetsAsync();
|
||
|
|
Task<IEnumerable<AssetDTO>> GetAssetsByLocationIdAsync(int locationId);
|
||
|
|
Task<PagedResult<AssetDTO>> GetAssetsPagedAsync(int page, int pageSize, string? search = null);
|
||
|
|
Task<AssetDTO> CreateAssetAsync(CreateAssetDTO dto, string userId);
|
||
|
|
Task<AssetDTO> UpdateAssetAsync(int id, UpdateAssetDTO dto, string userId);
|
||
|
|
Task DeleteAssetAsync(int id, string userId);
|
||
|
|
Task<bool> AssetExistsAsync(int id);
|
||
|
|
Task<int> GetTotalAssetCountAsync();
|
||
|
|
}
|
||
|
|
}
|