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