shoc-backend/SeaHaven.DataServices/Interfaces/IAssetDataService.cs

19 lines
661 B
C#
Raw Normal View History

2026-04-28 18:55:14 -05:00
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();
}
}