mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 03:43:11 +00:00
17 lines
735 B
C#
17 lines
735 B
C#
using SeaHaven.Services.DTOs;
|
|
|
|
namespace SeaHaven.Services.Interfaces
|
|
{
|
|
public interface IAccountService
|
|
{
|
|
Task<AccountDTO?> GetAccountByIdAsync(int id);
|
|
Task<AccountDTO?> GetAccountByIdWithDetailsAsync(int id);
|
|
Task<IEnumerable<AccountDTO>> GetAllAccountsAsync();
|
|
Task<PagedResult<AccountDTO>> GetAccountsPagedAsync(int page, int pageSize, string? search = null);
|
|
Task<AccountDTO> CreateAccountAsync(CreateAccountDTO dto, string userId);
|
|
Task<AccountDTO> UpdateAccountAsync(int id, UpdateAccountDTO dto, string userId);
|
|
Task DeleteAccountAsync(int id, string userId);
|
|
Task<bool> AccountExistsAsync(int id);
|
|
Task<int> GetTotalAccountCountAsync();
|
|
}
|
|
}
|