mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 11:53:12 +00:00
18 lines
779 B
C#
18 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();
|
|
}
|
|
}
|