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