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