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